Remove errant slash from the end of cd completions

Fixes #2465
This commit is contained in:
ridiculousfish 2015-10-07 13:39:42 -07:00
parent e8605cb3ef
commit 434eabb787

View file

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