diff options
author | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2023-10-10 07:56:02 +0200 |
---|---|---|
committer | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2023-10-10 07:56:17 +0200 |
commit | 643fdee5981c72dd5e972d3158806e90ae4b420f (patch) | |
tree | f322414b61e4c59061bcefb00f80b7b3be1d6b87 /bin/mount_dev | |
parent | 5cfffcdc264e62f2b1680620774e34d9f60a4d4e (diff) | |
download | dotfiles-643fdee5981c72dd5e972d3158806e90ae4b420f.tar.gz dotfiles-643fdee5981c72dd5e972d3158806e90ae4b420f.zip |
Do some changes, switch to alacritty, etc
Diffstat (limited to 'bin/mount_dev')
-rwxr-xr-x | bin/mount_dev | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/mount_dev b/bin/mount_dev index 5255a18..cba8c82 100755 --- a/bin/mount_dev +++ b/bin/mount_dev @@ -31,7 +31,7 @@ if [ "$(ls -A $DIR)" ]; then exit 1 fi -sshfs "$1":"$DIR" "$DIR" +sshfs -C -o cache_timeout=80000,auto_cache,reconnect "$1":"$DIR" "$DIR" if [ ! -f "/media/$2" ]; then sudo mkdir -p /media/$2 @@ -45,6 +45,13 @@ else sudo mount --bind --verbose "$DIR" "/media/$2" fi +tput setaf 4 +echo "Caching files" +tput sgr0 +for file in $(find "$DIR"); do + cat $file > /dev/null 2>&1 +done + tput setaf 2 echo "Done" tput sgr0 |