2.1 KiB
Kanipaan
Kanipaan, the command line calculator
Installation on GNU/Linux / Mac
Have Java installed, then in terminal:
$ cd ~
$ wget https://codeberg.org/kanipaan/kanipaan/releases/download/1.2.1/kanipaan-1.2.1-standalone.jar
This will download the jar file in your home directory.
Now let's create a hidden directory named .kanipaan
:
$ mkdir ~/.kanipaan
Let's move this 🫙 to the hidden directory
mv kanipaan-1.2.1-standalone.jar ~/.kanipaan
Let's add an alias in .bashrc
or .zshrc
for it to be used in a easy way:
Open either .bashrc
or .zshrc
, add this line:
alias kani='java -jar ~/.kanipaan/kanipaan-1.2.1-standalone.jar'
Let's let's load .bashrc
or .zshrc
in terminal:
$ source ~/.bashrc
or
$ source ~/.zshrc
Enjoy 🥳
$ kani
Usage
To use it type kani
in your terminal
$ kani
And you will get kani prompt as shown:
kani >
Start doing math
kani > 6 * 7
42
Instant kani
Instant kani is a mode where you just want to do math and get the result instantly rather than going into kani's prompt. For that just type your math operation followed by kani
in your terminal as shown
$ kani 6 * 7
42
Features
Kanipaan supports the following operations:
Operation | Meaning |
---|---|
+ | For addition |
- | For subtraction |
* | For multiplication |
/ | For division |
^ | For power |
(...) | For parentheses |
License
Copyright © 2024 Karthikeyan A K
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version, with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.