- Make sure you installed the w3m CLI
- Create a script like
websearch
with the following content:
#!/bin/sh
query=""
for arg in "$@"; do
query="$query+$arg"
done
query=${query:1} # remove leading +
url="https://lite.duckduckgo.com/lite/?kd=-1&kp=-1&q=$query"
w3m "$url"
- (Optional) Create an alias for easier management and place in your
~/.zshrc
or~/.bashrc
:
alias '?'=websearch
- Be happy using it!
? how to use github