Thread (52 messages) 52 messages, 1 author, 2022-08-30
STALE1372d

[PATCH 05/51] completion: zsh: add higher-priority location

From: Felipe Contreras <hidden>
Date: 2022-08-30 09:32:11
Subsystem: the rest · Maintainer: Linus Torvalds

bash-completion looks in /usr/local/share first, we should too.

Signed-off-by: Felipe Contreras <redacted>
---
 contrib/completion/git-completion.zsh | 1 +
 1 file changed, 1 insertion(+)
diff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh
index a1f2d27817..535cf03176 100644
--- a/contrib/completion/git-completion.zsh
+++ b/contrib/completion/git-completion.zsh
@@ -35,6 +35,7 @@ if [ -z "$script" ]; then
 	locations=(
 		"$(dirname ${funcsourcetrace[1]%:*})"/git-completion.bash
 		"$HOME/.local/share/bash-completion/completions/git"
+		'/usr/local/share/bash-completion/completions/git'
 		"$bash_completion/git"
 		'/etc/bash_completion.d/git' # old debian
 		)
-- 
2.37.2.351.g9bf691b78c.dirty
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help