mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
parent
ca929e088e
commit
eeea3f3b3c
1 changed files with 0 additions and 14 deletions
|
@ -1,17 +1,3 @@
|
||||||
|
|
||||||
complete -x -c cd -a "(__fish_complete_cd)"
|
complete -x -c cd -a "(__fish_complete_cd)"
|
||||||
complete -c cd -s h -l help --description 'Display help and exit'
|
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)'
|
|
||||||
|
|
Loading…
Reference in a new issue