1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-12-14 09:42:25 +03:00
cheat.sh/share/fish.txt

12 lines
325 B
Plaintext
Raw Normal View History

2017-05-30 22:01:25 +03:00
# 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)'