mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 01:11:15 -03:00
Make dirh, nextd, prevd work on OS X
This commit is contained in:
@@ -27,7 +27,7 @@ function dirh --description "Print the current directory history (the back- and
|
||||
set_color normal
|
||||
|
||||
# BSD seq 0 outputs '1 0' instead of nothing
|
||||
if test (count $dirnext) -gt 0
|
||||
if count $dirnext > /dev/null
|
||||
for i in (seq (echo (count $dirnext)) -1 1)
|
||||
echo -n -e $dirnext[$i]$separator
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user