Crates.io | terminal-dictionary |
lib.rs | terminal-dictionary |
version | 0.1.3 |
source | src |
created_at | 2024-07-12 16:37:06.687431 |
updated_at | 2024-07-17 07:48:53.940592 |
description | Simple Dictionary on the terminal |
homepage | |
repository | https://github.com/famedaxolotl/terminal-dictionary |
max_upload_size | |
id | 1300875 |
size | 27,506 |
This project uses the freeDictionaryAPI. Please support its author if you can.
Ever wanted to search the dictionary right from the terminal? No? Well anyway, terminal-dictionary is a simple dictionary and thesaurus tool written in Rust for the command-line. See Installation and Usage for more.
Use any of the following methods.
NOTE: The binary name is td
, which is what you will use to execute it.
You can download the binary from the releases page.
Move the binary td
to /usr/local/bin
with
sudo mv /Downloads/td /usr/local/bin
If you are a Rust programmer and have Cargo installed, simply run the following:
cargo install terminal-dictionary
This will install the binary from crates.io
If you have Cargo installed, run the following commands
git clone https://github.com/famedaxolotl/terminal-dictionary
cd terminal-dictionary
cargo build --release
Now, run with cargo run
or move the binary to /usr/bin
with:
sudo mv target/release/td /usr/local/bin
Alternatively for (1) and (3), you can add the Downloads folder to $PATH
by editing the ./bashrc
file.
Use the def
command to search dictionary:
td def hobby
Output:
HOBBY-----------NOUN
An activity that one enjoys doing in one's spare time.
Example: I like to collect stamps from different countries as a hobby.
An extinct breed of horse native to the British Isles, also known as the Irish Hobby
Example: N/A
Use the thes
command to search synonyms and antonyms:
td thes gregarious
Output:
Synonyms and antonyms for GREGARIOUS
Synonyms: outgoing, sociable, social,
Antonyms: ungregarious, nongregarious,