From 6fcad58490e93e0c2a3da0e2dbb2f20d4f323366 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Wed, 9 Nov 2016 22:33:10 +1300 Subject: Add calculator convenience function to bashrc --- bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bashrc b/bashrc index d8c7c0a..1593e19 100644 --- a/bashrc +++ b/bashrc @@ -25,6 +25,11 @@ man() { LESS_TERMCAP_us=$'\E[04;38;5;146m' \ man "$@" } + +ccc () { + bc -l <<< "$@" +} + ############### PS1="${BYellow}\ ┌[${BGreen}\u${BYellow}@${BBlue}\h${BYellow}][${BPurple}\W${BYellow}"'$(__git_ps1 " (%s)")'"] ${BBlack}<\d \t>${BYellow}\n\ -- cgit v1.1