1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-12-04 11:51:35 +03:00
cheat.sh/share/help.txt

86 lines
2.4 KiB
Plaintext
Raw Normal View History

2017-05-09 00:18:23 +03:00
Usage:
$ curl cheat.sh/TOPIC show cheat sheet on the TOPIC
2017-05-29 22:43:27 +03:00
$ curl cheat.sh/TOPIC/SUB show cheat sheet on the SUB topic in TOPIC
2017-05-09 00:18:23 +03:00
$ curl cheat.sh/~KEYWORD search cheat sheets for KEYWORD
Options:
2017-05-26 12:11:09 +03:00
?OPTIONS
2017-05-29 22:43:27 +03:00
q quiet mode, don't show github/twitter buttons
T text only, no ANSI sequences
style=STYLE color style
c do not comment text, do not shift code (QUERY+ only)
C do not comment text, shift code (QUERY+ only)
Q code only, don't show text (QUERY+ only)
2017-05-29 22:43:27 +03:00
Options can be combined together in this way:
curl 'cheat.sh/for?qT&style=bw'
2017-05-26 12:11:09 +03:00
(when using & in shell, don't forget to specify the quotes or escape & with \)
2017-05-09 00:18:23 +03:00
Special pages:
2017-05-29 22:43:27 +03:00
:help this page
:list list all cheat sheets
:post how to post new cheat sheet
:bash shell client
2017-05-29 22:43:27 +03:00
:bash_completion bash function for tab completion
:styles list of color styles
:styles-demo show color styles usage examples
2017-05-09 00:18:23 +03:00
Shell client:
$ curl https://cht.sh/:bash > ~/bin/cht.sh
$ chmod +x ~/bin/cht.sh
$ cht.sh python :learn
$ cht.sh --shell
2017-05-09 00:18:23 +03:00
Tab completion:
$ mkdir -p ~/.bash.d/
2017-05-09 00:18:23 +03:00
$ curl cheat.sh/:bash_completion > ~/.bash.d/cheat.sh
$ . ~/.bash.d/cheat.sh
$ echo '. ~/.bash.d/cheat.sh' >> ~/.bashrc
Editor integration:
:emacs see the page for the Emacs configuration
:vim see the page for the Vim configuration
2017-05-09 00:18:23 +03:00
Search:
/~snapshot look for "snapshot" in the first level cheat sheets
2017-05-26 12:11:09 +03:00
/~ssh~passphrase several keywords can be combined together using ~
2017-05-09 00:18:23 +03:00
/scala/~closure look for "closure" in scala cheat sheets
/~snapshot/r look for "snapshot" in all cheat sheets recursively
You can use special search options after the closing slash:
/~shot/bi case insensitive (i), word boundaries (b)
List of search options:
b word boundaries
i case insensitive search
r recursive
2017-05-29 22:43:27 +03:00
Programming languages topics:
each programming language topic has the following subptopics:
hello hello world + how to start the program
:learn big cheat sheet for learning language from scratch
:list list of topics
Support programming languages:
go
scala
rust
python
php