mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-12 01:52:31 +01:00
Trash all the ruby/git cruft and tweak completion a bit.
This commit is contained in:
parent
db18f4361b
commit
66e9fa165d
9 changed files with 16 additions and 148 deletions
|
|
@ -1,7 +1,8 @@
|
|||
## fixme - the load process here seems a bit bizarre
|
||||
|
||||
unsetopt noautomenu
|
||||
setopt complete_in_word
|
||||
setopt always_to_end
|
||||
unsetopt always_to_end
|
||||
|
||||
unsetopt flowcontrol
|
||||
|
||||
|
|
@ -12,7 +13,7 @@ compinit
|
|||
|
||||
zmodload -i zsh/complist
|
||||
|
||||
## case-insensitive (all),partial-word and then substring completion
|
||||
# case-insensitive (all), partial-word and then substring completion
|
||||
if [ "x$CASE_SENSITIVE" = "xtrue" ]; then
|
||||
zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
||||
unset CASE_SENSITIVE
|
||||
|
|
@ -22,15 +23,14 @@ fi
|
|||
|
||||
zstyle ':completion:*' list-colors ''
|
||||
|
||||
|
||||
unsetopt MENU_COMPLETE
|
||||
#setopt AUTO_MENU
|
||||
setopt AUTO_MENU
|
||||
|
||||
# should this be in keybindings?
|
||||
bindkey -M menuselect '^o' accept-and-infer-next-history
|
||||
|
||||
zstyle ':completion:*:*:*:*:*' menu select
|
||||
# zstyle ':completion:*:*:*:*:processes' force-list always
|
||||
zstyle ':completion:*:*:*:*:*' menu select=1
|
||||
zstyle ':completion:*:*:*:*:processes' force-list always
|
||||
|
||||
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"
|
||||
|
|
@ -40,9 +40,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue