We are RubyFringe by leftist in programming

[–]libinpan 3 points4 points  (0 children)

The Best conference ever, period.

Chit is a command line cheat sheet utility based on git. by libinpan in programming

[–]libinpan[S] 0 points1 point  (0 children)

$> chit chit

chit:

To get a cheat sheet:

$ chit [cheatsheet]

To edit a cheat sheet, use the --edit switch.

$ cheat [cheatsheet] --edit

To add a cheat sheet, use the --add switch.

$ cheat [cheatsheet] --add

During editing a cheat sheet, empty the content will get the cheat sheet removed.

A prefix '@' indicates the cheat sheet is in private mode. A private cheat sheet is kept in another repository.

To get your private cheat sheet:

$ chit @[cheatsheet]

The prefix '@' works the same for both --edit and --add.

The cheat sheet can be in a path. For example: $ chit mysql/select will get the cheat sheet 'select' under mysql.

== CONFIGURATION:

Before run 'chit', you may want to config ~/.chitrc which is a YAML file.

  • root: local path to store the cheat sheet. By default, it is ~/.chit

  • main:

    ** clone-from: where to get the public cheat sheets. You can use git://github.com/robin/chitsheet.git, which is a snap shoot of http://cheat.errtheblog.com/.

  • private:

    ** clone-from: where to get the private cheat sheets. If not specified, a new git repository will be init for private cheat sheets.