I want to have a fast way to calculate my family age, how long I have been working for a company, marriage, and other stuff.
Create a file named config.ron
in ~/.config/nai/. If you are on Windows, put it under \AppData\Nai. Then add your configuration:
rust
Config(
moments: [
// My birthday
(
start_date: "1980-Oct-15",
// Currently, only `start_date` and `duration` are available
format: "👶 {{ 'Aragorn II Elessar age (Me)' | cyan | bold }}\nBorn at: {{ start_date | red }}\nAge: {{ duration }}\n",
),
],
)
To see more configuration, see the example
directory.
The release page includes pre-compiled binaries for GNU/Linux, macOS, and Windows.
Using cargo-binstall
bash
$ cargo binstall nai
Using Rust's package manager cargo:
bash
$ cargo install nai
```bash git clone https://github.com/azzamsa/nai
cd nai cargo build
cargo test
cargo install --path . ```
To learn more read the development guide
Nai (나이) means "age" in Korean.