Last active
February 22, 2019 19:46
-
-
Save revsuine/91e46b3adae32db81b785d4a3ee3322d to your computer and use it in GitHub Desktop.
Add an easy calculator to bash. Append this to `~/.bashrc`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make `echo "$calculation" | bc` much easier to type. | |
# if `calc` is already in use, feel free to change it to something else. | |
calc () { echo "$@" | bc; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment