Add cht.sh plugin
This commit is contained in:
9
plugins/available/cht-sh.plugin.bash
Normal file
9
plugins/available/cht-sh.plugin.bash
Normal 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
|
||||||
Reference in New Issue
Block a user