]> Sergey Matveev's repositories - dotfiles.git/blobdiff - zsh/.zshrc
Complete hashed directories
[dotfiles.git] / zsh / .zshrc
index 13cdff3101b3873b36674824b1c0f3e4bea09450..8867f6bcfa822030c7dab822f66602ab2b60674b 100644 (file)
@@ -180,6 +180,7 @@ zstyle ":completion:*" completer _mycomp _parameters _ignored
 _mycomp () {
     [[ $CURRENT -eq 1 ]] && curcontext="${curcontext%:*:*}:-command-:" \
         _command_names && return
+    [[ $IPREFIX =~ ~.* ]] && _tilde && return
     local has_files
     curcontext=:files:${curcontext#:*:} _files && has_files=1
     [[ ${words[1]} == man ]] && curcontext=:man:${curcontext#:*:} \
@@ -239,12 +240,12 @@ while read w ; do
 done < ~/.zhashd
 # }}}
 
-# autoenv {{{
-. ~/work/zsh-autoenv/autoenv.zsh
-# }}}
-
 # Virtualenv {{{
 venv() {
     . /usr/local/bin/virtualenvwrapper.sh
 }
 # }}}
+
+# autoenv {{{
+. ~/work/zsh-autoenv/autoenv.zsh
+# }}}