diff options
author | Starfall <us@starfall.systems> | 2022-08-29 11:44:24 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2022-08-29 11:44:24 -0500 |
commit | 4fcd92157b2c247e0a4ef89c7ea803266d3a8277 (patch) | |
tree | f88e3c2d4be4d84ebe6330834b5b76f06e7de66b /.config/zsh/completion.zsh | |
parent | 85c4933ad8aedd2d311c2e7d3a04c67adf4b7725 (diff) |
zsh: alias cat to bat, utils replacements to new file
Diffstat (limited to '.config/zsh/completion.zsh')
-rw-r--r-- | .config/zsh/completion.zsh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/zsh/completion.zsh b/.config/zsh/completion.zsh new file mode 100644 index 0000000..bbaacba --- /dev/null +++ b/.config/zsh/completion.zsh @@ -0,0 +1,17 @@ +# completions +setopt complete_in_word # complete both ends of words +setopt always_to_end # and move cursor to the end afterward +setopt auto_menu # <tab><tab> brings up the menu ... +setopt no_menu_complete # ... and does not select the first option +setopt auto_param_slash # convenience: add trailing / after directories +setopt no_case_glob +setopt no_flow_control +# complete . and .. +zstyle ':completion:*' special-dirs true +# complete the middle of words e.g. lc -> pluralcafe +zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*' +# cache completions +zstyle ':completion::complete:*' use-cache yes +zstyle ':completion::complete:*' cache-path "$HOME/.zcompcache" +# enable completions +autoload -Uz compinit && compinit |