git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/5] completion: zsh: fix for directories with spaces

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Jun 14, 2019, 06:50 UTC
Message-ID
<20190614065051.17774-3-felipe.contreras@gmail.com>
In-Reply-To
<20190614065051.17774-1-felipe.contreras@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 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 b3c4588515..067738d93f 100644
--- a/contrib/completion/git-completion.zsh
+++ b/contrib/completion/git-completion.zsh
@@ -32,7 +32,7 @@ if [ -z "$script" ]; then
 	local -a locations
 	local e
 	locations=(
-		$(dirname ${funcsourcetrace[1]%:*})/git-completion.bash
+		"$(dirname ${funcsourcetrace[1]%:*})"/git-completion.bash
 		'/usr/share/bash-completion/completions/git'
 		'/etc/bash_completion.d/git' # old debian
 		)
-- 
2.22.0.rc2.dirty
Previous: Felipe ContrerasNext: Felipe Contreras
Message 3 of 6 in “contrib: completion: general zsh updates”
  1. 0/5 contrib: completion: general zsh updatesFelipe Contreras, Jun 14, 2019
  2. 1/5 completion: zsh: update installation instructionsFelipe Contreras, Jun 14, 2019
  3. 2/5 completion: zsh: fix for directories with spacesFelipe Contreras, Jun 14, 2019
  4. 3/5 completion: remove zsh hackFelipe Contreras, Jun 14, 2019
  5. 4/5 completion: zsh: improve main function selectionFelipe Contreras, Jun 14, 2019
  6. 5/5 completion: prompt: fix color for ZshFelipe Contreras, Jun 14, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.