Skip to content

Commit 5491e36

Browse files
committed
zsh completion: support paths with spaces
1 parent d0f0663 commit 5491e36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎completion/paket-completion.zsh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,11 +1379,11 @@ _paket_executable() {
13791379

13801380
local location
13811381
for location in $locations; do
1382-
[[ -f "$location" ]] && printf '%s %s' "$mono" "$location" && return
1382+
[[ -f "$location" ]] && printf '%s "%s"' "$mono" "$location" && return
13831383
done
13841384

13851385
if (($+commands[paket])); then
1386-
printf '%s' "$commands[paket]" && return
1386+
printf '"%s"' "$commands[paket]" && return
13871387
fi
13881388

13891389
return 1

0 commit comments

Comments
 (0)