still didn't work correctly, there were delimiters missing in the conditional as well

This commit is contained in:
Andreas Raster 2011-06-24 02:45:05 +02:00
parent b2887477e3
commit 1ae44c6b3c

View File

@ -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