1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-22 10:01:27 +03:00
This commit is contained in:
nav1s 2024-11-21 16:57:19 +00:00 committed by GitHub
commit 76953aab1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
# add it to your ~/.config/fish/config.fish # add it to your ~/.config/fish/config.fish
# retrieve command cheat sheets from cheat.sh # retrieve command cheat sheets from cheat.sh
# fish version by @tobiasreischmann # Online Version by @tobiasreischmann:
function cheat.sh function cheat.sh
curl cheat.sh/$argv 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 # 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)' complete -c cheat.sh -xa '(curl -s cheat.sh/:list)'
# Local/Standalone version:
complete -c cht.sh -xa '$(cht.sh :list)'