From 1ee6e20be8a0a5a26b5eb1018bae9da6bf7e9c66 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Thu, 8 Oct 2020 21:36:08 +0800 Subject: [PATCH] Added function to create and mount sshfs newnumyspace file system. --- .custom_bash_scripts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.custom_bash_scripts b/.custom_bash_scripts index a25881b..81606e1 100644 --- a/.custom_bash_scripts +++ b/.custom_bash_scripts @@ -20,3 +20,15 @@ cfdir() { cd $HOME/.config/$1 } + +#sshfs into newnumyspace +nnms_fs() +{ + dir_name="newnumyspace" + if [ ! -d $PWD/$dirname ] + then + echo "Created new directory $dirname at ${PWD}" + fi + sshfs unn_w19014537@newnumyspace.co.uk:/home/unn_w19014537/ newnumyspace/ + echo "Mounted at $PWD/$dirname." +}