From e945aae5935a8fc809bd9e178e77e2091fa3fa6d Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Wed, 26 Aug 2026 14:32:50 +0300 Subject: [PATCH] Add support for Homebrew on Linux autocomplete files --- zsh/11-autocomplete.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zsh/11-autocomplete.zsh b/zsh/11-autocomplete.zsh index 991193f..322e2cb 100644 --- a/zsh/11-autocomplete.zsh +++ b/zsh/11-autocomplete.zsh @@ -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