Fix cd prompt fail on the case that CDPATH have variables

This commit is contained in:
Grissiom 2010-09-17 16:01:44 +08:00
parent 51b5adc306
commit 1b16758d7e

View File

@ -31,7 +31,7 @@ function __fish_complete_cd -d "Completions for the cd command"
# in case the CDPATH directory is relative
builtin cd $wd
builtin cd $i
eval builtin cd $i
eval printf '"%s\tDirectory in "'$i'"\n"' (commandline -ct)\*/
end