Add cht.sh plugin

pull/1516/head
David Farrell 2020-03-09 12:38:05 -07:00
parent 2e53796d49
commit 6419d9246d
No known key found for this signature in database
GPG Key ID: 1CCA28D0E300B56F
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
cite about-plugin
about-plugin 'Simplify `curl cht.sh/<query>` to `cht.sh <query>`'
# Play nicely if user already installed cht.sh cli tool
if ! _command_exists cht.sh ; then
function cht.sh () {
curl "cht.sh/$1"
}
fi