- Make sure you installed the w3m CLI
- Create a script like
websearchwith 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
~/.zshrcor~/.bashrc:
alias '?'=websearch- Be happy using it!
? how to use github