1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

fish support (closes #3)

This commit is contained in:
Igor Chubin
2017-05-30 19:01:25 +00:00
parent 77e483ff26
commit 466bc4acef
+11
View File
@@ -0,0 +1,11 @@
# retrieve command cheat sheets from cheat.sh
# fish version by @tobiasreischmann
# (replace ch with cheat.sh if the name is too short for you)
function ch
curl ch/$argv
end
# register completions (on-the-fly, non-cached, because the actual command won't be cached anyway
complete -c ch -xa '(curl -s cheat.sh/:list)'