[PATCH 06/51] zsh: resolve symlink of script
From: Felipe Contreras <hidden>
Date: 2022-08-30 09:32:19
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Felipe Contreras <hidden>
Date: 2022-08-30 09:32:19
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Michael Bianco <redacted> When using zinit the completions are symlinked to ~/.zinit/completions, this causes the zsh script to not be able to find the bash script. Signed-off-by: Felipe Contreras <redacted> --- contrib/completion/git-completion.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh
index 535cf03176..1a405ba0a2 100644
--- a/contrib/completion/git-completion.zsh
+++ b/contrib/completion/git-completion.zsh@@ -33,7 +33,7 @@ if [ -z "$script" ]; then bash_completion='/usr/share/bash-completion/completions/' locations=( - "$(dirname ${funcsourcetrace[1]%:*})"/git-completion.bash + "$(dirname $(realpath ${funcsourcetrace[1]%:*}))"/git-completion.bash "$HOME/.local/share/bash-completion/completions/git" '/usr/local/share/bash-completion/completions/git' "$bash_completion/git"
--
2.37.2.351.g9bf691b78c.dirty