diff options
author | 2006-12-13 03:11:18 +1000 | |
---|---|---|
committer | 2006-12-13 03:11:18 +1000 | |
commit | fd11f294bc0e1c35acae9e327026fdaa6b3546f9 (patch) | |
tree | cb317d9c0678e8d16e3a04f1ab352027d55ef870 /share/functions/dirh.fish | |
parent | b3fa76c1beac9719d97917361a9d7fde2d678300 (diff) |
Use the math function instead of calling bc directly in various places
darcs-hash:20061212171118-ac50b-a40709edf008f3d725e3755d5282ae5a84818c88.gz
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 b30a44e9..40a1b0ca 100644 --- a/share/functions/dirh.fish +++ b/share/functions/dirh.fish @@ -12,7 +12,7 @@ function dirh -d (N_ "Print the current directory history (the back- and fwd- li # Avoid set comment set -l current (command pwd) set -l separator " " - set -l line_len (echo (count $dirprev) + (echo $dirprev $current $dirnext | wc -m) | bc) + set -l line_len (math (count $dirprev) + (echo $dirprev $current $dirnext | wc -m) ) if test $line_len -gt $COLUMNS # Print one entry per line if history is long set separator "\n" |