瀏覽代碼

add mounthome function

Kevin Heinicke 9 年之前
父節點
當前提交
6f4a7dcc74
共有 1 個文件被更改,包括 5 次插入0 次删除
  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}')