Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15

Re: [PATCH] completion: zsh: improve bash script loading

From: Johannes Sixt <hidden>
Date: 2016-06-15 22:57:28

Am 5/29/2013 5:24, schrieb Felipe Contreras:
+if [ -z "$script" ]; then
+	local -a locations
+	locations=(
+		'/etc/bash_completion.d/git' # fedora, old debian
+		'/usr/share/bash-completion/completions/git' # arch, ubuntu, new debian
+		'/usr/share/bash-completion/git' # gentoo
+		$(dirname ${funcsourcetrace[1]%:*})/git-completion.bash
+		)
Won't you need

	local e

here, or does it not matter?
+	for e in $locations; do
+		test -f $e && script="$e" && break
+	done
+fi
-- Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help