bifurcation

This commit is contained in:
Brad 2019-03-13 15:58:16 -05:00
parent 4a59e1b816
commit 2b1eaa2c39

View File

@ -53,10 +53,16 @@ export EDITOR='vim'
export VISUAL='vim' export VISUAL='vim'
tempdrive () { tempdrive () {
$DIRECTORY=/mnt/RAM/
if [ -z $@ ] if [ -z $@ ]
then then
echo "Please provide a disk size in Mb." echo "Please provide a disk size in Mb."
else else
if [ -d $DIRECTORY ]
then
sudo mkdir /mnt/RAM;
echo "Directory created"
fi
sudo mount -t tmpfs tmpfs /mnt/RAM -o size=$@m; echo "$@M Disk created in RAM" sudo mount -t tmpfs tmpfs /mnt/RAM -o size=$@m; echo "$@M Disk created in RAM"
fi fi
} }
@ -103,6 +109,7 @@ mksketch(){
fi fi
vim "$1/$1.ino" vim "$1/$1.ino"
} }
bigtext(){ bigtext(){
if [ -z "$1" ] if [ -z "$1" ]
then then