add: advanced completion for vi (e.g. tex and rc files first)
This commit is contained in:
parent
3f86e1cba2
commit
3d2d5a6ede
|
@ -75,6 +75,9 @@ zstyle ':completion::*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;32'
|
|||
# rm: advanced completion (e.g. bak files first)
|
||||
zstyle ':completion::*:rm:*:*' file-patterns '*.o:object-files:object\ file *(~|.(old|bak|BAK)):backup-files:backup\ files *~*(~|.(o|old|bak|BAK)):all-files:all\ files'
|
||||
|
||||
# vi: advanced completion (e.g. tex and rc files first)
|
||||
zstyle ':completion::*:vi:*:*' file-patterns 'Makefile|*(rc|log)|*.(php|tex|bib|sql|zsh|ini|sh|vim|rb|sh|js|tpl|csv|rdf|txt|phtml|tex|py|n3):vi-files:vi\ like\ theses\ files *~(Makefile|*(rc|log)|*.(log|rc|php|tex|bib|sql|zsh|ini|sh|vim|rb|sh|js|tpl|csv|rdf|txt|phtml|tex|py|n3)):all-files:other\ files'
|
||||
|
||||
zstyle :compinstall filename '~/.zshrc'
|
||||
|
||||
autoload -Uz compinit && compinit
|
||||
|
|
Loading…
Reference in a new issue