Option and completion changes:

* disabling autocd
    * disabling cdablevar
    * completion leaves cursor at the end of the word
    * completion assumes start-of-word
    * getting rid of cd() function
    * dirs => dirs -v
    * not sharing history between active sessions
This commit is contained in:
Michael Komitee 2011-01-07 09:49:30 -05:00
commit ae50006c8a
4 changed files with 29 additions and 28 deletions

View file

@ -3,7 +3,7 @@
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
unsetopt complete_in_word
setopt always_to_end
WORDCHARS=''
@ -15,10 +15,11 @@ zmodload -i zsh/complist
## case-insensitive (all),partial-word and then substring completion
if [ "x$CASE_SENSITIVE" = "xtrue" ]; then
zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
# zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
unset CASE_SENSITIVE
else
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
# zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
fi
zstyle ':completion:*' list-colors ''