aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/dirh.fish
diff options
context:
space:
mode:
Diffstat (limited to 'share/functions/dirh.fish')
-rw-r--r--share/functions/dirh.fish2
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"