diff --git a/share/functions/__fish_complete_cd.fish b/share/functions/__fish_complete_cd.fish index 784074254..5e5198350 100644 --- a/share/functions/__fish_complete_cd.fish +++ b/share/functions/__fish_complete_cd.fish @@ -18,7 +18,7 @@ function __fish_complete_cd -d "Completions for the cd command" end - if echo (commandline -ct)|sgrep '^/\|^\./\|^\.\./' >/dev/null + if echo '(commandline -ct)'|sgrep '^/\|^\./\|^\.\./' >/dev/null # This is an absolute search path eval printf '\%s\\tDirectory\\n' '(commandline -ct)'\*/ else