From 336b1bedcb52a0a8e129aa4be8e8a20419fbacc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sun, 8 Oct 2017 14:23:19 +0200 Subject: [zsh] Use zcalc instead of bc --- .zsh/zshfunctions | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.zsh/zshfunctions b/.zsh/zshfunctions index 40a72d6..8f8b0c8 100644 --- a/.zsh/zshfunctions +++ b/.zsh/zshfunctions @@ -10,12 +10,11 @@ if [[ -n $_IS_GENTOO ]]; then fi # Calculator -function = -{ - echo "$@" | bc -l +autoload -U zcalc +function = { + zcalc -e "$*" } -aliases[=]='noglob =' -alias calc="=" +aliases[=]='LC_NUMERIC=C noglob =' # Quick find f() -- cgit v1.2.3