summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2016-11-09 22:33:10 +1300
committerDavid Phillips <david@sighup.nz>2016-11-09 22:33:10 +1300
commit6fcad58490e93e0c2a3da0e2dbb2f20d4f323366 (patch)
treeda94af11446a71723d29cb80721c365d474f13c9
parent49b53c75b94aea509436536f94dc3e65354b9fcf (diff)
downloaddotfiles-6fcad58490e93e0c2a3da0e2dbb2f20d4f323366.tar.xz
Add calculator convenience function to bashrc
-rw-r--r--bashrc5
1 files changed, 5 insertions, 0 deletions
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\