1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-22 01:40:48 +03:00

Update fish.txt

This commit is contained in:
nav1s 2022-11-18 15:20:33 +02:00 committed by GitHub
parent 571377f2f7
commit 1c09b4bf66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)'