Bash utility for viewing, managing, and creating cheat sheets for developers and designers via git repositories. Cheat sheets are currently stored on Github fork and contribute!
Cheat was a great idea, however 'ch' aims to increase the quality of cheat sheets, as well as making them easy to find by keeping things nice and organized. View the Repo to see for your self, only quality cheat sheets are allowed, and are required to be named by topic to increase searchability.
- Very fast
- High quality, well organized, moderated cheat sheets
- Few dependencies (common now, you should have them (sed, git, etc))
- Self updating via
ch update self
- Instant cheat sheet updates via
- Tons of cheat sheets!
$ sudo make install $ sudo make uninstall
Or if you do not wish to clone this repo:
$ cd /tmp && git clone git://github.com/visionmedia/ch.git && cd ch && sudo make install
Output verbose help information for 'ch' :)
Outputs contents of the first sheet matching [sheet]. For example if the
cheat sheet 'css.properties.transitions.sheet' is available you may use
ch css.properties.tran, etc. As long as only one sheet matches it will open (or the first match).
ch locate [sheet]
Outputs the path(s) to [sheet] or all sheets
$ ch locate ruby /Users/tjholowaychuk/.ch-sheets/jedit_ruby_editor_plugin.sheet /Users/tjholowaychuk/.ch-sheets/radrails_ruby.sheet /Users/tjholowaychuk/.ch-sheets/ruby.$.sheet /Users/tjholowaychuk/.ch-sheets/ruby.keywords.sheet /Users/tjholowaychuk/.ch-sheets/ruby.mode_strings.sheet /Users/tjholowaychuk/.ch-sheets/ruby.sheet /Users/tjholowaychuk/.ch-sheets/ruby1line.sheet /Users/tjholowaychuk/.ch-sheets/rubydebug.sheet /Users/tjholowaychuk/.ch-sheets/rubyio.sheet /Users/tjholowaychuk/.ch-sheets/rubyprof.sheet /Users/tjholowaychuk/.ch-sheets/textmate_ruby.sheet
ch [search|find|list] [sheet]
Outputs a list of sheets matching [sheet] or all sheets
$ ch find ruby radrails_ruby ruby.$ ruby.keywords ruby.mode_strings ruby ruby1line rubydebug rubyio rubyprof textmate_ruby $ ch list ... shows everything
ch read <sheet>
Read the exact <sheet> given. No globbing allowed here! This is useful when it is difficult to target the correct sheet due to short names. For example 'e' requires that you:
$ ch read e
ch edit [sheet]
Opens sheets matching [sheet] or all sheets in $EDITOR
Updates the cheat sheet repository to grab the latest changes.
ch update self
Updates the 'ch' binary. clones the origin repository to /tmp/ch and sudo make installs automatically.
- Outputs the help information
Viewing Sheet Specifics
Sometimes you want to quickly search for a specific chunk of the cheat sheet for example a specific css property, or selector. This can be done easily using grep
$ ch css | grep :empty E:empty an E element, with no children (including text nodes)
(The MIT License)
Copyright (c) 2009 TJ Holowaychuk <firstname.lastname@example.org>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, an d/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.