Add support for Homebrew on Linux autocomplete files

This commit is contained in:
2026-08-26 14:32:50 +03:00
parent f67adb1df8
commit e945aae593
+6
View File
@@ -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