comparison zshrc @ 124:474a8dbb1ac5

Ignore certain filetypes when completing for (m)vim
author zegervdv <zegervdv@me.com>
date Mon, 29 Sep 2014 21:42:23 +0200
parents 7e18562d7570
children 860548f92a96
comparison
equal deleted inserted replaced
123:a9197f1b1638 124:474a8dbb1ac5
40 # source $ZSH/plugins/history-substring-search/history-substring-search.zsh 40 # source $ZSH/plugins/history-substring-search/history-substring-search.zsh
41 41
42 setopt nobeep 42 setopt nobeep
43 setopt notify 43 setopt notify
44 REPORTTIME=5 44 REPORTTIME=5
45
45 # GRML style completion 46 # GRML style completion
46 # activate color-completion 47 # activate color-completion
47 zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} 48 zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
48 49
49 # format on completion 50 # format on completion
95 /sbin \ 96 /sbin \
96 /bin \ 97 /bin \
97 /usr/X11R6/bin 98 /usr/X11R6/bin
98 99
99 # provide .. as a completion 100 # provide .. as a completion
100 zstyle ':completion:*' special-dirs .. 101 zstyle ':completion:*' specal-dirs ..
101 102
103
104 zstyle ':completion::*:(m|)vim:*' ignored-patterns '*.(o|hex|elf|pyc)'
102 # Customize to your needs... 105 # Customize to your needs...
103 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 106 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
104 export PATH="/usr/local/bin:$PATH" 107 export PATH="/usr/local/bin:$PATH"
105 export PATH="$(brew --prefix ruby)/bin:$PATH" 108 export PATH="$(brew --prefix ruby)/bin:$PATH"
106 export NODE_PATH="/usr/local/lib/node" 109 export NODE_PATH="/usr/local/lib/node"
137 140
138 # alias ctags='$(brew --prefix ctags)/bin/ctags' 141 # alias ctags='$(brew --prefix ctags)/bin/ctags'
139 142
140 # Disable Autocorrections 143 # Disable Autocorrections
141 alias tmux='nocorrect tmux' 144 alias tmux='nocorrect tmux'
142 alias mvim="reattach-to-user-namespace mvim" 145 # alias mvim="reattach-to-user-namespace mvim"
143 alias vim="reattach-to-user-namespace vim" 146 # alias vim="reattach-to-user-namespace vim"
144 # alias ag="ag --color" 147 # alias ag="ag --color"
145 alias dot="cd ~/.dotfiles" 148 alias dot="cd ~/.dotfiles"
146 alias ranger="EDITOR=mvim ranger" 149 alias ranger="EDITOR=mvim ranger"
147 150
148 # ag tab complete 151 # ag tab complete
151 compadd $(cut -f 1 .git/tags tmp/tags 2>/dev/null | grep -v '!_TAG') 154 compadd $(cut -f 1 .git/tags tmp/tags 2>/dev/null | grep -v '!_TAG')
152 fi 155 fi
153 } 156 }
154 157
155 compdef _ag ag 158 compdef _ag ag
159
156 compctl -g '~/.teamocil/*(:t:r)' teamocil 160 compctl -g '~/.teamocil/*(:t:r)' teamocil
157 161
158 [[ -f ~/.zshrc.local ]] && source ~/.zshrc.local 162 [[ -f ~/.zshrc.local ]] && source ~/.zshrc.local
159 163
160 bindkey '\e[A' history-beginning-search-backward 164 bindkey '\e[A' history-beginning-search-backward
166 cd "$(_z -l 2>&1 | sed -n 's/^[ 0-9.,]*//p' | fzf)" 170 cd "$(_z -l 2>&1 | sed -n 's/^[ 0-9.,]*//p' | fzf)"
167 else 171 else
168 _z "$@" 172 _z "$@"
169 fi 173 fi
170 } 174 }
175