Browse code

Merge branch 'named_dirs_completion' of http://github.com/kremso/oh-my-zsh into kremso-named_dirs_completion

Robby Russell authored on 01/10/2010 at 03:50:00
Showing 2 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 )
... ...
@@ -21,5 +21,3 @@ then
21 21
 else
22 22
   /usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh
23 23
 fi
24
-
25
-unset config_file
26 24
\ No newline at end of file