From 3fb51b141d316b775fc68a1b6106909147ab2f62 Mon Sep 17 00:00:00 2001 From: Brad Ganley Date: Wed, 31 May 2023 11:44:25 -0500 Subject: [PATCH] added ramdisk alias --- .bash_aliases | 10 ++++++++++ 1 file changed, 10 insertions(+) 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" +}