From 1023228ddcfd11825a82f07d2e4a63101ca2ad9d Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 8 Jun 2023 14:32:19 +0300 Subject: [PATCH] chore(zsh): Moved brew autocomplete config --- base/zshrc | 8 -------- config/exports-apps | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/base/zshrc b/base/zshrc index 784c914..e80c659 100644 --- a/base/zshrc +++ b/base/zshrc @@ -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 diff --git a/config/exports-apps b/config/exports-apps index 18fa7a8..7c45a6c 100755 --- a/config/exports-apps +++ b/config/exports-apps @@ -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"