]> Sergey Matveev's repositories - dotfiles.git/blobdiff - zsh/.zshrc
tai64nlocal alias
[dotfiles.git] / zsh / .zshrc
index 39fa3a5373f2565e57df2e839c1789d6f2118e51..a211a2671f38fee15fe6feee9eda301c01ba275c 100644 (file)
@@ -80,6 +80,7 @@ alias vi="vim"
 alias m="less "
 alias -g M="| less"
 alias -g W="| wc -l | sed 's/ //g'"
+alias -g T="| tai64nlocal"
 alias mc="mc --nomouse"
 
 f() {
@@ -94,7 +95,6 @@ ssht() {
 
 autoload -U zsh-mime-setup ; zsh-mime-setup
 alias -s html=lynx
-alias -s txt=less
 
 autoload -U zmv
 # }}}
@@ -181,6 +181,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#:*:} \
@@ -240,12 +241,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
+# }}}