From 466bc4acefa99879ddf06e146759f1e1a726750d Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Tue, 30 May 2017 19:01:25 +0000 Subject: [PATCH] fish support (closes #3) --- share/fish.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 share/fish.txt diff --git a/share/fish.txt b/share/fish.txt new file mode 100644 index 0000000..9073f36 --- /dev/null +++ b/share/fish.txt @@ -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)' +