mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
Fix dirs returns false when $dirstack is empty
This commit is contained in:
parent
60a9dcbf05
commit
afef67b4e8
1 changed files with 1 additions and 0 deletions
|
@ -16,4 +16,5 @@ function dirs --description 'Print directory stack'
|
|||
|
||||
# Replace $HOME with ~.
|
||||
string replace -r '^'"$HOME"'($|/)' '~$1' -- $PWD $dirstack | string join " "
|
||||
return 0
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue