chore(zsh): Moved brew autocomplete config

This commit is contained in:
2023-06-08 14:32:19 +03:00
parent 8f8851d08f
commit 1023228ddc
2 changed files with 8 additions and 8 deletions

View File

@@ -49,11 +49,3 @@ have starship && eval "$(starship init zsh)"
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}"/fzf/fzf.zsh ] \
&& source "${XDG_CONFIG_HOME:-$HOME/.config}"/fzf/fzf.zsh
if type brew &>/dev/null
then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
autoload -Uz compinit
compinit
fi

View File

@@ -21,6 +21,14 @@ have ansible && {
x-dc "$ANSIBLE_GALAXY_CACHE_DIR"
}
# brew configuration
have brew && {
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
autoload -Uz compinit
compinit
}
# composer, https://getcomposer.org/
have composer && {
export COMPOSER_HOME="$XDG_STATE_HOME/composer"