Skip to content

Commit

Permalink
Revert "Add completions for cd -"
Browse files Browse the repository at this point in the history
This reverts commit 9d69f44.
  • Loading branch information
ridiculousfish committed Oct 1, 2016
1 parent ca929e0 commit eeea3f3
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions share/completions/cd.fish
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@

complete -x -c cd -a "(__fish_complete_cd)"
complete -c cd -s h -l help --description 'Display help and exit'

function __fish_complete_previous_dir
set -l dir
if test "$__fish_cd_direction" = "next"
set dir $dirnext[-1]
else
set dir $dirprev[-1]
end
if set -q dir[1]
printf '%s\t%s\n' - "Previous dir: $dir"
end
end

complete -c cd -a '(__fish_complete_previous_dir)'

0 comments on commit eeea3f3

Please sign in to comment.