by literalusername · 12y ago · 0 comments
I normally use Webster's 1913 from the command line, since I usually have a terminal in front of me. I keep this in my .zshrc:
function dict () {
if [[ $1 == (d|m) ]]; then
curl dict://dict.org/$1:$2 | $PAGER
else
echo 'Unknown command. Use (d)efine or (m)atch.'
fi
}
That allows me to issue queries such as `dict d example` to define "example", or `dict m exampel` to figure out how "example" ought to be spelled.