From 434eabb7878178a095b8508ccbf5d232461e8d95 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Wed, 7 Oct 2015 13:39:42 -0700 Subject: [PATCH] Remove errant slash from the end of cd completions Fixes #2465 --- 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 26e469ad7..ac871d224 100644 --- a/share/functions/__fish_complete_cd.fish +++ b/share/functions/__fish_complete_cd.fish @@ -17,7 +17,7 @@ function __fish_complete_cd -d "Completions for the cd command" pushd $i for d in (commandline -ct)*/ # Check if it's accessible - the glob only matches directories - [ -x $d ]; and printf "%s/\t%s\n" $d $desc + [ -x $d ]; and printf "%s\t%s\n" $d $desc end popd end