added ramdisk alias

This commit is contained in:
Brad Ganley 2023-05-31 11:44:25 -05:00
parent 42e5a4e97a
commit 3fb51b141d

View File

@ -178,3 +178,13 @@ function cntdn() {
done
echo "Time's up!"
}
function ramdisk() {
if [ ! -d "$HOME/ramdown" ]; then
mkdir "$HOME/ramdown"
fi
size="$1"
sudo mount -t tmpfs -o size="$size" tmpfs "$HOME/ramdown"
}