Add support for Homebrew on Linux autocomplete files
This commit is contained in:
@@ -4,6 +4,12 @@ if [ "${OS}" = "Darwin" ] && [ "${OS_ARCH}" = "arm64" ]; then
|
||||
export fpath=(${fpath} /opt/homebrew/share/zsh/site-functions)
|
||||
fi
|
||||
|
||||
# The same goes for Homebrew on Linux.
|
||||
# Yes, /home/linuxbrew is universal for every standard brew install on Linux.
|
||||
if [ "${OS}" = "Linux" ] && [ -d "/home/linuxbrew/.linuxbrew/share/zsh/site-functions" ]; then
|
||||
export fpath=(${fpath} /home/linuxbrew/.linuxbrew/share/zsh/site-functions)
|
||||
fi
|
||||
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
zstyle ':completion:*' menu select=2
|
||||
|
||||
Reference in New Issue
Block a user