- Save the script, for example, as
ddg - Run
sudo chmod a+x ddg - Move the script into your PATH folder
- Enjoy!
- Bash
- Python 3 (should be preinstalled on most distros)
- Lynx (isn't usually preinstalled, install it with
sudo apt install lynxor the corresponding packet manager for your distro
$ ddg- opens DuckDuckGo in Lynx$ ddg Bad bash examples- searches for "Bad bash examples"$ ddg Россия- it works with non-ascii chars as well