github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

visionmedia / ch

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 35
    • 3
  • Source
  • Commits
  • Network (3)
  • Issues (3)
  • Downloads (5)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (5)
    • 0.1.0
    • 0.0.4
    • 0.0.3
    • 0.0.2
    • 0.0.1
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Cheat Sheet Utility for Bash - similar to 'cheat' but much faster, not dependent on ruby, and better cheats — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Tabs -> Spaces 
visionmedia (author)
Mon Nov 16 10:22:43 -0800 2009
commit  2090037343ca2ef13e8c5aeb6877b79f28f2df49
tree    8f6d97af2daf942190edd4a5dc33fedd57168262
parent  6cae1f304046b75bf64569a169a1fa11983aff2a
ch /
name age
history
message
file History.md Thu Oct 29 08:21:14 -0700 2009 Release 0.1.0 [visionmedia]
file Makefile Thu Oct 22 09:00:20 -0700 2009 Initial commit [visionmedia]
file Readme.md Fri Nov 13 17:28:27 -0800 2009 Readme [visionmedia]
directory bin/ Mon Nov 16 10:22:43 -0800 2009 Tabs -> Spaces [visionmedia]
Readme.md

CH

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!

Why Another?

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.

Features

  • 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 ch update
  • Tons of cheat sheets!

Installation

$ 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

ch ch

Output verbose help information for 'ch' :)

ch [sheet]

Outputs contents of the first sheet matching [sheet]. For example if the cheat sheet 'css.properties.transitions.sheet' is available you may use ch transitions, 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

ch update

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.

ch help

  • 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)

License

(The MIT License)

Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>

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.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server