From 1b16758d7e5cc98b4b9afe4bd747c77bcc39faa6 Mon Sep 17 00:00:00 2001 From: Grissiom Date: Fri, 17 Sep 2010 16:01:44 +0800 Subject: Fix cd prompt fail on the case that CDPATH have variables --- share/functions/__fish_complete_cd.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_complete_cd.fish b/share/functions/__fish_complete_cd.fish index c4a6695a..1ca88af3 100644 --- a/share/functions/__fish_complete_cd.fish +++ b/share/functions/__fish_complete_cd.fish @@ -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 -- cgit v1.2.3