mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-30 04:20:43 +00:00
Major rewrite: switching back to Arch from NixOS
This commit is contained in:
parent
df585b737b
commit
254181c0fc
121 changed files with 5433 additions and 2371 deletions
19
home/.config/zsh/rc/completion.zsh
Normal file
19
home/.config/zsh/rc/completion.zsh
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Autocompletion behavior of ZSH
|
||||
|
||||
autoload -Uz compinit
|
||||
zmodload -i zsh/complist # load completion list
|
||||
|
||||
if [[ -n "$(print ${ZDOTDIR:-$HOME}/.zcompdump(Nmh+5))" ]]; then
|
||||
# Re-check for new completions, re-creating .zcompdump if necessary.
|
||||
# This check can be quite slow and it's rare that we actually have new completions to load.
|
||||
# For that reason, we only do this if the compdump file is older than 5 hours.
|
||||
compinit
|
||||
else
|
||||
# This will omit the check for new completions,
|
||||
# only re-creating .zcompdump if it doesn't yet exist.
|
||||
compinit -C
|
||||
fi
|
||||
|
||||
zstyle ':completion:*' menu select # select completions with arrow keys
|
||||
zstyle ':completion:*' group-name '' # group results by category
|
||||
zstyle ':completion:::::' completer _expand _complete _ignored _approximate # enable approximate matches for completion
|
Loading…
Add table
Add a link
Reference in a new issue