a nifty little Python2.7 script to improve your vocabulary.
- Install dependencies by
$ pip install -r requirements.txt
- Move this script to your /usr/bin/ ,
$ sudo mv shabdkosh.py /usr/bin/shabdkosh
- Give it super powers ,
$ sudo chmod +x /usr/bin/shabdkosh
- Create a empty .shabdkosh.json file for storing history.
$ sudo echo '{}'>/usr/bin/.shabdkosh.json && sudo chmod +777 /usr/bin/.shabdkosh.json
- Start playing with it by
-
to get definition of random word
$ shabdkosh
-
to get definition of some word.
$ shabdkosh <some_word>
-
to get definition of word from your history.
$ shabdkosh --history
-
send it to lolcat for more fun🌈🐱
$ shabdkosh rainbow | lolcat
-
This one big bash line will setup shabdkosh for you and will even make it show you one random word from history when you start up a terminal session.
sudo bash -c 'wget https://raw.githubusercontent.com/pallavmahamana/shabdkosh/master/shabdkosh.py -O /usr/bin/shabdkosh && wget https://raw.githubusercontent.com/pallavmahamana/shabdkosh/master/shabdbash.py -O /usr/bin/shabdbash && echo '{}'>>/usr/bin/.shabdkosh.json && chmod +x /usr/bin/shabdkosh && chmod +x /usr/bin/shabdbash && chmod +777 /usr/bin/.shabdkosh.json && echo ''>>~/.bashrc && echo ''>>~/.zshrc && echo 'shabdbash'>>~/.bashrc && echo 'shabdbash'>>~/.zshrc && shabdkosh welcome'