소스 검색

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}')