zsh-grawlinson/source/completions.zsh

28 lines
972 B
Bash
Raw Normal View History

2021-07-08 16:52:07 +00:00
#
2019-10-31 23:18:00 +00:00
# completion configuration
2021-07-08 16:52:07 +00:00
#
2019-10-31 23:18:00 +00:00
# have the menu highlight as we cycle through options
zstyle ':completion:*' menu select
# case insensitive (all), partial-word and substring completion
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
# allow completion from within a word/phrase
setopt COMPLETE_IN_WORD
# when completing from the middle of a word, move cursor to end of word
setopt ALWAYS_TO_END
# turn on completion for aliases as well
setopt COMPLETE_ALIASES
# cycle through menus horizontally instead of vertically
#setopt LIST_ROWS_FIRST
# when using auto-complete, put the first option on the line immediately
#setopt MENU_COMPLETE
# complete . and .. special directories
zstyle ':completion:*' special-dirs true
2021-07-08 16:52:07 +00:00
# enable caching so that commands like apt and dpkg are completeable
2019-10-31 23:18:00 +00:00
zstyle ':completion::complete:*' use-cache 1
2019-12-05 07:19:39 +00:00
zstyle ':completion::complete:*' cache-path "${ZCACHEDIR}"
2019-10-31 23:18:00 +00:00
# vim: ft=zsh expandtab tabstop=2 shiftwidth=2