/pycalc

zsh calculator plugin

Primary LanguageShellMIT LicenseMIT

zsh calculator plugin

Zsh calculator plugin using Python syntax

Installation

  1. Install oh-my-zsh and python
  2. Clone repository: git clone https://github.com/peibozhao/pycalc.git $HOME/.oh-my-zsh/custom/plugins/pycalc
  3. Add pycalc to the plugins list in your .zshrc file: plugins=(... pycalc)
  4. Restart your zsh

Usage

~$ = 2**10
1024
~$ peibozhao-tencent = sin(pi)
1.2246467991473532e-16
~$ = cos(0)
1.0
~$ = log(12)
2.4849066497880004