Browse code

Do not complete named-directories

Tomas Kramar authored on 26/09/2010 at 14:03:44
Showing 1 changed files
... ...
@@ -1,4 +1,4 @@
1
-## fixme - the load process here seems a bit bizarre
1
+# fixme - the load process here seems a bit bizarre
2 2
 
3 3
 unsetopt menu_complete   # do not autoselect the first completion entry
4 4
 unsetopt flowcontrol
... ...
@@ -30,6 +30,11 @@ zstyle ':completion:*:*:*:*:*' menu select
30 30
 zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
31 31
 zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm -w -w"
32 32
 
33
+# disable named-directories autocompletion
34
+zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories
35
+cdpath=(.)
36
+
37
+
33 38
 # Load known hosts file for auto-completion with ssh and scp commands
34 39
 if [ -f ~/.ssh/known_hosts ]; then
35 40
   zstyle ':completion:*' hosts $( sed 's/[, ].*$//' $HOME/.ssh/known_hosts )