Zsh calculator plugin using Python syntax
- Install oh-my-zsh and python
- Clone repository:
git clone https://github.com/peibozhao/pycalc.git $HOME/.oh-my-zsh/custom/plugins/pycalc - Add pycalc to the plugins list in your .zshrc file:
plugins=(... pycalc) - Restart your zsh
~$ = 2**10
1024
~$ peibozhao-tencent = sin(pi)
1.2246467991473532e-16
~$ = cos(0)
1.0
~$ = log(12)
2.4849066497880004