aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/math.fish
diff options
context:
space:
mode:
Diffstat (limited to 'share/functions/math.fish')
-rw-r--r--share/functions/math.fish6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/functions/math.fish b/share/functions/math.fish
index d28087fa..cda345a6 100644
--- a/share/functions/math.fish
+++ b/share/functions/math.fish
@@ -1,6 +1,12 @@
function math -d (N_ "Perform math calculations in bc")
if count $argv >/dev/null
+ switch $argv[1]
+ case -h --h --he --hel --help
+ __fish_print_help math
+ return 0
+ end
+
set -l out (echo $argv|bc)
echo $out
switch $out