added ramdisk alias
This commit is contained in:
parent
42e5a4e97a
commit
3fb51b141d
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user