diff options
Diffstat (limited to 'share/functions/__fish_complete_cd.fish')
-rw-r--r-- | share/functions/__fish_complete_cd.fish | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/functions/__fish_complete_cd.fish b/share/functions/__fish_complete_cd.fish index 1ca88af3..dbc7f766 100644 --- a/share/functions/__fish_complete_cd.fish +++ b/share/functions/__fish_complete_cd.fish @@ -17,17 +17,17 @@ function __fish_complete_cd -d "Completions for the cd command" set mycdpath $CDPATH end - + if echo (commandline -ct)|sgrep '^/\|^\./\|^\.\./' >/dev/null # This is an absolute search path eval printf '\%s\\tDirectory\\n' (commandline -ct)\*/ else # This is a relative search path - # Iterate over every directory in CDPATH + # Iterate over every directory in CDPATH # and check for possible completions for i in $mycdpath - # Move to the initial directory first, + # Move to the initial directory first, # in case the CDPATH directory is relative builtin cd $wd |