Add cht.sh plugin

This commit is contained in:
David Farrell
2020-03-09 12:38:05 -07:00
parent 2e53796d49
commit 6419d9246d

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