From 2ed8759dda38178f15940b7c6e3b3a79691192e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sun, 8 Oct 2017 13:14:36 +0200 Subject: [zsh] Calculator --- .zsh/zshfunctions | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.zsh/zshfunctions b/.zsh/zshfunctions index bb9bf0b..40a72d6 100644 --- a/.zsh/zshfunctions +++ b/.zsh/zshfunctions @@ -9,6 +9,14 @@ if [[ -n $_IS_GENTOO ]]; then } fi +# Calculator +function = +{ + echo "$@" | bc -l +} +aliases[=]='noglob =' +alias calc="=" + # Quick find f() { -- cgit v1.2.3