diff --git a/.bash_aliases b/.bash_aliases index a2c1fb6..ab245ad 100755 --- a/.bash_aliases +++ b/.bash_aliases @@ -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" +}