74b2c5d75ab6477ea3f72eeadb6fd81b42c1abd4

Author
Tomas Kramar <kramar.tomas@gmail.com>
Committer
Tomas Kramar <kramar.tomas@gmail.com>
Date

Message

Do not complete named-directories

Diff

 1diff --git a/lib/completion.zsh b/lib/completion.zsh
 2index cba90179f28d31ba24c1c4ca77b76e6485632d2c..52cc5b53c0fe14d4b65953d04cee4342122794de 100644
 3--- a/lib/completion.zsh
 4+++ b/lib/completion.zsh
 5@@ -1,4 +1,4 @@
 6-## fixme - the load process here seems a bit bizarre
 7+# fixme - the load process here seems a bit bizarre
 8 
 9 unsetopt menu_complete   # do not autoselect the first completion entry
10 unsetopt flowcontrol
11@@ -30,6 +30,11 @@ zstyle ':completion:*:*:*:*:*' menu select
12 zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
13 zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm -w -w"
14 
15+# disable named-directories autocompletion
16+zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories
17+cdpath=(.)
18+
19+
20 # Load known hosts file for auto-completion with ssh and scp commands
21 if [ -f ~/.ssh/known_hosts ]; then
22   zstyle ':completion:*' hosts $( sed 's/[, ].*$//' $HOME/.ssh/known_hosts )