mirror of
https://github.com/chubin/cheat.sh
synced 2024-11-14 23:17:06 +00:00
12 lines
326 B
Text
12 lines
326 B
Text
# add it to your ~/.config/fish/config.fish
|
|
|
|
# retrieve command cheat sheets from cheat.sh
|
|
# fish version by @tobiasreischmann
|
|
|
|
function cheat.sh
|
|
curl cheat.sh/$argv
|
|
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)'
|
|
|