From ef1811c3acff28c76762d07750fa58230d69d157 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Mon, 9 Nov 2020 13:15:23 +0100 Subject: [PATCH] Add calc function --- dotfiles/shell/aliases | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dotfiles/shell/aliases b/dotfiles/shell/aliases index 3edfda2..9c4c622 100644 --- a/dotfiles/shell/aliases +++ b/dotfiles/shell/aliases @@ -94,3 +94,8 @@ bye() { cd || exit 1 git-summary -d } + +calc() { + # Use python to make simple calculations, like 'calc 24/8' + python -c "print($*)" +}