From 1c09b4bf66ba8da6d131e4de5770d7389fe0a288 Mon Sep 17 00:00:00 2001 From: nav1s <42621369+nav1s@users.noreply.github.com> Date: Fri, 18 Nov 2022 15:20:33 +0200 Subject: [PATCH] Update fish.txt --- share/fish.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/share/fish.txt b/share/fish.txt index 05ec4d26..8cc220c7 100644 --- a/share/fish.txt +++ b/share/fish.txt @@ -1,7 +1,7 @@ # add it to your ~/.config/fish/config.fish # retrieve command cheat sheets from cheat.sh -# fish version by @tobiasreischmann +# Online Version by @tobiasreischmann: function cheat.sh curl cheat.sh/$argv @@ -10,3 +10,8 @@ end # register completions (on-the-fly, non-cached, because the actual command won't be cached anyway complete -c cheat.sh -xa '(curl -s cheat.sh/:list)' +# Local/Standalone version: + +complete -c cht.sh -xa '$(cht.sh :list)' + +