From d2074e447a3bf82515868a9d6b1fdff9fe935e06 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Mon, 8 May 2017 23:17:26 +0200 Subject: [PATCH] minor formating issues --- README.md | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 41342a3..4810db5 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,13 @@ Usage examples: - ``` +``` $ curl cheat.sh/rsync $ curl cheat.sh/btrfs~volume $ curl cheat.sh/~snapshot $ curl cheat.sh/scala/Functions $ curl cheat.sh/scala/Functions~map - ``` +``` ## Options @@ -26,53 +26,54 @@ Usage examples: Special URLs: - ``` +``` /:help # show help page /:post # how to post new cheat sheets /:list # list all known cheat sheets - ``` +``` ## Tab completion - ``` +``` $ curl cheat.sh/:bash_completion > ~/.bash.d/cheat.sh $ . ~/.bash.d/cheat.sh $ # add . ~/.bash.d/cheat.sh to ~/.bashrc - ``` +``` ## Search To search for a keyword, use the query: - ``` +``` /~keyword - ``` +``` In this case search is not recursive — it is conducted only in a pages of the specified level. For example: - ``` +``` /~snapshot look for snapshot in the first level cheat sheets /scala/~currying look for currying in scala cheat sheets - ``` +``` For a recursive search in all cheat sheets, use double slash: - ``` - //~snapshot look for snapshot in all cheat sheets - ``` +``` + /~snapshot/r look for snapshot in all cheat sheets +``` You can use special search options after the closing slash: - ``` +``` /~shot/bi case insensitive (i), word boundaries (b) - ``` +``` List of search options: ``` i case insensitive search b word boundaries + r recursive search ``` ## Cheat sheets sources