aboutsummaryrefslogtreecommitdiffhomepage
path: root/share
diff options
context:
space:
mode:
authorGravatar Grissiom <chaos.proton@gmail.com>2011-07-28 10:06:19 +0800
committerGravatar Grissiom <chaos.proton@gmail.com>2011-07-28 10:06:19 +0800
commit157ca12d4bdab08f0905d642bd4298b0a2d588f7 (patch)
treee94e737ebcd9fe97ce93119a22aa45cb02f9e784 /share
parente9d1a5498317f3d2d7829a9dfb7e25c328e52df3 (diff)
parent1ae44c6b3c02060e69eb0896cdd6f1b782faadbc (diff)
Merge commit 'refs/merge-requests/12' of git://gitorious.org/fish-shell/fish-shell into merge-requests/12
Diffstat (limited to 'share')
-rw-r--r--share/functions/__fish_complete_cd.fish6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/functions/__fish_complete_cd.fish b/share/functions/__fish_complete_cd.fish
index dbc7f766..5e519835 100644
--- a/share/functions/__fish_complete_cd.fish
+++ b/share/functions/__fish_complete_cd.fish
@@ -18,9 +18,9 @@ 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)\*/
+ eval printf '\%s\\tDirectory\\n' '(commandline -ct)'\*/
else
# This is a relative search path
# Iterate over every directory in CDPATH
@@ -33,7 +33,7 @@ function __fish_complete_cd -d "Completions for the cd command"
builtin cd $wd
eval builtin cd $i
- eval printf '"%s\tDirectory in "'$i'"\n"' (commandline -ct)\*/
+ eval printf '"%s\tDirectory in "'$i'"\n"' '(commandline -ct)'\*/
end
end