Thread (48 messages) flat view 48 messages, 1 author, 2021-06-18
STALE1883d

[PATCH v2 06/45] completion: zsh: add higher-priority location

From: Felipe Contreras <hidden>
Date: 2021-06-18 18:25:38
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 4a4df3b37c..da13c184d1 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.32.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help