# HG changeset patch # User zegervdv # Date 1412019743 -7200 # Node ID 474a8dbb1ac5a9b26487599bfe30e649a3bd764a # Parent a9197f1b1638d8eb845ecb14dbc27f4e2ec0b3ad Ignore certain filetypes when completing for (m)vim diff -r a9197f1b1638 -r 474a8dbb1ac5 zshrc --- a/zshrc Mon Sep 29 20:46:02 2014 +0200 +++ b/zshrc Mon Sep 29 21:42:23 2014 +0200 @@ -42,6 +42,7 @@ setopt nobeep setopt notify REPORTTIME=5 + # GRML style completion # activate color-completion zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} @@ -97,8 +98,10 @@ /usr/X11R6/bin # provide .. as a completion -zstyle ':completion:*' special-dirs .. +zstyle ':completion:*' specal-dirs .. + +zstyle ':completion::*:(m|)vim:*' ignored-patterns '*.(o|hex|elf|pyc)' # Customize to your needs... export PATH=$PATH:/usr/local/opt/ruby/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/texbin:/usr/local/sbin export PATH="/usr/local/bin:$PATH" @@ -139,8 +142,8 @@ # Disable Autocorrections alias tmux='nocorrect tmux' -alias mvim="reattach-to-user-namespace mvim" -alias vim="reattach-to-user-namespace vim" +# alias mvim="reattach-to-user-namespace mvim" +# alias vim="reattach-to-user-namespace vim" # alias ag="ag --color" alias dot="cd ~/.dotfiles" alias ranger="EDITOR=mvim ranger" @@ -153,6 +156,7 @@ } compdef _ag ag + compctl -g '~/.teamocil/*(:t:r)' teamocil [[ -f ~/.zshrc.local ]] && source ~/.zshrc.local @@ -168,3 +172,4 @@ _z "$@" fi } +