Skip to content

Commit

Permalink
feat: add homebrew zsh completions support
Browse files Browse the repository at this point in the history
  • Loading branch information
mike325 committed Aug 2, 2024
1 parent 93351f4 commit ebcd096
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions shell/settings/zsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ setopt hist_verify # Do not execute immediately upon history expansio

fpath+="$HOME/.config/shell/zfunctions"
fpath+="$HOME/.zsh/zfunctions"
if hash brew 2>/dev/null && [[ -d "$(brew --prefix)/share/zsh-completions" ]]; then
fpath+="$(brew --prefix)/share/zsh-completions"
fi

if [[ -d /opt/homebrew/share/zsh/site-functions ]]; then
fpath+="/opt/homebrew/share/zsh/site-functions"
fi

# Color man pages
export LESS_TERMCAP_mb=$'\E[01;32m'
Expand Down

0 comments on commit ebcd096

Please sign in to comment.