Explorar el Código

add mounthome function

Kevin Heinicke hace 9 años
padre
commit
6f4a7dcc74
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      zshrc

+ 5 - 0
zshrc

@@ -27,6 +27,11 @@ printable-code()
     echo $doc | pandoc -o "$name.$oformat"
 }
 
+# mount a remote host at /MountPoint/bla-home
+mounthome () {
+ sshfs $1: /MountPoints/$1-home -o auto_cache,reconnect,volname=$1-home,no_readahead,noappledouble,nolocalcaches
+}
+
 # make the clipboard working on remote
 if [[ -n "$SSH_CLIENT" ]]; then
   SSH_IP=$(echo $SSH_CLIENT | awk '{print $1}')