|
|
Another way with bash
I added the following to my .bash_profile file to accomplish something similar:
Then you can bring up the terminal and type things like "calc 9*9" or "calc 3^3" which will return 81 and 27, respectively.
Your .bash_profile file is located in your home directory. In the terminal you can type "cd ~" to make sure you are in your home directory then use a text editor like pico "pico .bash_profile" to edit the file. After saving the file (control-x) you will need to log out and back in for the changes to take effect.
Another way with zsh
if using zsh, try having a function like this
and then you can type, eg calc 9+3
Of course you could also just type print $((9+3)) but that would just spoil the fun.
Another way with csh/tcsh
I have an alias setup in my .cshrc file that looks like this |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|