diff --git a/plugins/available/cht-sh.plugin.bash b/plugins/available/cht-sh.plugin.bash new file mode 100644 index 00000000..bc9dcd6c --- /dev/null +++ b/plugins/available/cht-sh.plugin.bash @@ -0,0 +1,9 @@ +cite about-plugin +about-plugin 'Simplify `curl cht.sh/` to `cht.sh `' + +# Play nicely if user already installed cht.sh cli tool +if ! _command_exists cht.sh ; then + function cht.sh () { + curl "cht.sh/$1" + } +fi