1. Make a command alias to python3 /path/to/dict.py such as 'alias dict="python3 /path/to/dict.py" '
2. Add this command to ~/.bashrc file in the end (so that every time a terminal is launched this script gets executed).
For example if aliased command is 'dict' , just write 'dict'(without single quotes) in last line of ~/.bashrc file. If you inserted alias in ~/.bashrc file then it will automatically gets executes on launching terminal.
-
Use it as :
Just type this on terminal1. dict - fetches some random word from local dictionary and shows its meaning 2. dict some_word - fetches word's meaning and adds to local dictionary if it's not there already. (Thus keeps building dictionary on encounter with new word.)
-
Same as the above but just replace 'dict' by 'python3 /path/to/dict.py'
Note : For better resutls avoid editing wordlist.py file
Star the repo if it helped you.
IIT Guwahati.