<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;h1&gt;Chit&lt;/h1&gt;
&lt;h2&gt;&lt;span class=&quot;caps&quot;&gt;DESCRIPTION&lt;/span&gt;:&lt;/h2&gt;
&lt;p&gt;Chit is a command line cheat sheet utility based on git.&lt;/p&gt;
&lt;h2&gt;&lt;span class=&quot;caps&quot;&gt;FEATURES&lt;/span&gt;:&lt;/h2&gt;
&lt;p&gt;Chit was inspired by &lt;a href=&quot;http://cheat.errtheblog.com/&quot;&gt;&amp;#8216;cheat&amp;#8217;&lt;/a&gt; by Chris Wanstrath. You can use chit to access and manage your cheat sheets easily.&lt;/p&gt;
&lt;p&gt;There are several differences between &amp;#8216;cheat&amp;#8217; and &amp;#8216;chit&amp;#8217;. By using chit, besides the wonderful features of &amp;#8216;cheat&amp;#8217;, you get:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Git powered cheat sheet repository. You can specify where you get the sheets and where to share them.&lt;/li&gt;
	&lt;li&gt;Your own private cheat sheets. Everybody has some project related or smoe cheat sheets which are not mean to public. You can also put them into chit&lt;/li&gt;
	&lt;li&gt;Directory support. You can group cheat sheets by directory now.&lt;/li&gt;
	&lt;li&gt;One less letter to type.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span class=&quot;caps&quot;&gt;SYNOPSIS&lt;/span&gt;:&lt;/h2&gt;
&lt;p&gt;To initialize chit repositories&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;$ chit --init&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
This will be run automatically when you run chit for the first time.&lt;/p&gt;
&lt;p&gt;To get a cheat sheet:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ chit [cheatsheet]&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If it does not exist, a new one will be created and waiting for your editing. Leave it blank and quit the editor if you don&amp;#8217;t want to add a new one.&lt;/p&gt;
&lt;p&gt;To edit a cheat sheet, use the &amp;#8212;edit switch.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ chit [cheatsheet] --edit&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To add a cheat sheet, use the &amp;#8212;add switch.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ chit [cheatsheet] --add&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;During editing a cheat sheet, empty the content will get the cheat sheet removed.&lt;/p&gt;
&lt;p&gt;A prefix &amp;#8216;@&amp;#8217; indicates the cheat sheet is in private mode. A private cheat sheet is kept in another repository.&lt;/p&gt;
&lt;p&gt;To get a private cheat sheet:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ chit @[cheatsheet]&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The prefix &amp;#8216;@&amp;#8217; works the same for both &amp;#8212;edit and &amp;#8212;add.&lt;/p&gt;
&lt;p&gt;The cheat sheet can be in a path. For example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ chit mysql/select&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;will get the cheat sheet &amp;#8216;select&amp;#8217; under mysql.&lt;/p&gt;
&lt;p&gt;To show all the cheat sheets:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ chit [all|sheets]&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To show all the private cheat sheets:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ chit @[all|sheets]&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To find cheat sheets begin with &amp;#8216;name&amp;#8217;, use the &amp;#8212;find/-f switch&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ chit name --find&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To search cheat sheets content with &amp;#8216;text&amp;#8217;, use the &amp;#8212;search/-s switch&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ chit text --search&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To move or rename a sheet, use &amp;#8216;&amp;#8212;mv/-m&amp;#8217; switch&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ chit zsh_if zsh/if -m&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span class=&quot;caps&quot;&gt;INSTALL&lt;/span&gt;:&lt;/h2&gt;
&lt;pre&gt;
&lt;code&gt;
sudo gem install robin-chit -s http://gems.github.com

chit --init
&lt;/code&gt;
&lt;/pre&gt;
&lt;h2&gt;&lt;span class=&quot;caps&quot;&gt;CONFIGURATION&lt;/span&gt;:&lt;/h2&gt;
&lt;p&gt;Before run &amp;#8216;chit&amp;#8217;, you may want to config ~/.chitrc which is a &lt;span class=&quot;caps&quot;&gt;YAML&lt;/span&gt; file.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;root: local path to store the cheat sheet. By default, it is ~/.chit&lt;/li&gt;
	&lt;li&gt;main:
	&lt;ul&gt;
		&lt;li&gt;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/.&lt;/li&gt;
	&lt;/ul&gt;&lt;/li&gt;
	&lt;li&gt;private:
	&lt;ul&gt;
		&lt;li&gt;clone-from: where to get the private cheat sheets. If not specified, a new git repository will be init for private cheat sheets.&lt;/li&gt;
	&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span class=&quot;caps&quot;&gt;REQUIREMENTS&lt;/span&gt;:&lt;/h2&gt;
&lt;ul&gt;
	&lt;li&gt;rubygems&lt;/li&gt;
	&lt;li&gt;git&lt;/li&gt;
&lt;/ul&gt;</body>
  <created-at type="datetime">2008-06-21T07:40:55-07:00</created-at>
  <id type="integer">29000</id>
  <permalink>user-s-guide</permalink>
  <repository-id type="integer">26657</repository-id>
  <title>User's Guide</title>
  <updated-at type="datetime">2009-07-26T03:03:42-07:00</updated-at>
  <user-id type="integer">108013</user-id>
</wiki>
