mirror of
https://github.com/chubin/cheat.sh.git
synced 2024-11-22 01:40:48 +03:00
Merge 1c09b4bf66
into 4cebb8c066
This commit is contained in:
commit
76953aab1e
@ -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)'
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user