move your body every every body

This commit is contained in:
Brad Ganley 2019-03-13 16:14:12 -05:00
parent 2b1eaa2c39
commit b521468ae5

View File

@ -53,18 +53,25 @@ export EDITOR='vim'
export VISUAL='vim' export VISUAL='vim'
tempdrive () { tempdrive () {
$DIRECTORY=/mnt/RAM/ if [ $@ == 0 ]
if [ -z $@ ]
then
echo "Please provide a disk size in Mb."
else
if [ -d $DIRECTORY ]
then then
sudo mkdir /mnt/RAM; sudo umount /mnt/RAM
echo "Directory created" sudo rm -rf /mnt/RAM
return
fi
if [ -z $@ ]
then
echo "Please provide a disk size in Mb."
else
if [ -d /mnt/RAM/ ]
then
echo "Directory exists"
else
sudo mkdir /mnt/RAM
echo "Directory created"
fi
sudo mount -t tmpfs tmpfs /mnt/RAM -o size=$@m; echo "$@M Disk created in RAM"
fi fi
sudo mount -t tmpfs tmpfs /mnt/RAM -o size=$@m; echo "$@M Disk created in RAM"
fi
} }
cd () { cd () {