summaryrefslogtreecommitdiff
path: root/lib/completion.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/completion.zsh')
-rw-r--r--lib/completion.zsh22
1 files changed, 5 insertions, 17 deletions
diff --git a/lib/completion.zsh b/lib/completion.zsh
index 46b6d8f65..cba90179f 100644
--- a/lib/completion.zsh
+++ b/lib/completion.zsh
@@ -1,15 +1,15 @@
## fixme - the load process here seems a bit bizarre
-setopt noautomenu
+unsetopt menu_complete # do not autoselect the first completion entry
+unsetopt flowcontrol
+setopt auto_menu # show completion menu on succesive tab press
setopt complete_in_word
setopt always_to_end
-unsetopt flowcontrol
-
WORDCHARS=''
autoload -U compinit
-compinit
+compinit -i
zmodload -i zsh/complist
@@ -23,16 +23,10 @@ fi
zstyle ':completion:*' list-colors ''
-
-unsetopt MENU_COMPLETE
-#setopt AUTO_MENU
-
# should this be in keybindings?
bindkey -M menuselect '^o' accept-and-infer-next-history
-zstyle ':completion:*:*:*:*:*' menu yes select
-# zstyle ':completion:*:*:*:*:processes' force-list always
-
+zstyle ':completion:*:*:*:*:*' menu select
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm -w -w"
@@ -41,9 +35,3 @@ if [ -f ~/.ssh/known_hosts ]; then
zstyle ':completion:*' hosts $( sed 's/[, ].*$//' $HOME/.ssh/known_hosts )
zstyle ':completion:*:*:(ssh|scp):*:*' hosts `sed 's/^\([^ ,]*\).*$/\1/' ~/.ssh/known_hosts`
fi
-
-# Complete on history
-#zstyle ':completion:*:history-words' stop yes
-#zstyle ':completion:*:history-words' remove-all-dups yes
-#zstyle ':completion:*:history-words' list false
-#zstyle ':completion:*:history-words' menu yes