fix(shell): updated completions settings

This commit is contained in:
2023-08-10 09:32:25 +03:00
parent 49362fcc9d
commit a3acd654f2
4 changed files with 202 additions and 10 deletions

View File

@@ -21,11 +21,20 @@ autoload -U colors zsh/terminfo
colors
setopt correct
export ZSH_CUSTOM_COMPLETION_PATH="$XDG_CONFIG_HOME/zsh/completion"
x-dc "$ZSH_CUSTOM_COMPLETION_PATH"
# Add completion scripts to zsh path
FPATH="~/.config/zsh/completion:$FPATH"
autoload -Uz compinit && compinit -i
FPATH="$ZSH_CUSTOM_COMPLETION_PATH:$FPATH"
autoload -Uz compinit
compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION"
if type brew &>/dev/null
then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
compinit
fi
# Run x-load-configs in your terminal to reload the files.
function x-load-configs()
{