diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-04 18:53:38 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-04 18:53:38 -0700 |
commit | fe7fa46d57a41bbf102fd65b8f63deca5c800c73 (patch) | |
tree | 819a0120f86fab2be41f06e3302b2616b63887a0 /share/functions/dirh.fish | |
parent | 007c5bc9f0c0d997b9fecb6f7d429a38458de407 (diff) |
Make dirh, nextd, prevd work on OS X
Diffstat (limited to 'share/functions/dirh.fish')
-rw-r--r-- | share/functions/dirh.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/dirh.fish b/share/functions/dirh.fish index b9b86b56..639e920a 100644 --- a/share/functions/dirh.fish +++ b/share/functions/dirh.fish @@ -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 |