mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 07:34:32 +00:00
Fix indentation in __fish_complete_cd
This commit is contained in:
parent
cb86b8f8fc
commit
63a15e232b
1 changed files with 8 additions and 8 deletions
|
@ -30,13 +30,13 @@ function __fish_complete_cd -d "Completions for the cd command"
|
|||
for i in $mycdpath
|
||||
# Move to the initial directory first,
|
||||
# in case the CDPATH directory is relative
|
||||
builtin cd $wd ^/dev/null
|
||||
builtin cd $i ^/dev/null
|
||||
|
||||
if test $status -ne 0
|
||||
# directory does not exists or missing permission
|
||||
continue
|
||||
end
|
||||
builtin cd $wd ^/dev/null
|
||||
builtin cd $i ^/dev/null
|
||||
|
||||
if test $status -ne 0
|
||||
# directory does not exists or missing permission
|
||||
continue
|
||||
end
|
||||
|
||||
# What we would really like to do is skip descriptions if all
|
||||
# valid paths are in the same directory, but we don't know how to
|
||||
|
@ -49,5 +49,5 @@ function __fish_complete_cd -d "Completions for the cd command"
|
|||
end
|
||||
end
|
||||
|
||||
builtin cd $wd ^/dev/null
|
||||
builtin cd $wd ^/dev/null
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue