public
Description: cheat sheet repository for chit
Homepage:
Clone URL: git://github.com/robin/chitsheet.git
robin (author)
Wed Jul 09 03:11:05 -0700 2008
commit  4d546432dd5b473dbbb5883f19cacc71b4599483
tree    d2371207000e34eb8ae02337f9e5c2f03ffdd22d
parent  8b2c5772e458466c24b4c2360fcf24e8b3b72468
chitsheet / Cheat.yml
100644 56 lines (38 sloc) 1.445 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
cheat: |-
  Hey, welcome to cheat (http://cheat.errtheblog.com).
  Thanks for trying it out.
  
  Here are a few commands to get you started.
  
  Installation:
  $ gem install cheat
  
  Recently added cheat sheets:
  $ cheat recent
  
  All cheat sheets:
  $ cheat sheets
  
  The `strftime' cheat sheet:
  $ cheat strftime
  
  View a cheat sheet in TextMate:
  $ cheat strftime | mate
  
  Less or more, for scrolly terminal:
  $ cheat strftime | less
  $ cheat strftime | more
  
  Print a cheat sheet
  $ cheat strftime | lpr
  
  To edit a cheat sheet, use the --edit switch.
  $ cheat markaby --edit
  
  To add a cheat sheet, use the --add switch.
  $ cheat readme --add
  
  To use a different editor (such as TextMate) for --edit and --add, set the VISUAL (or EDITOR) environment variable:
  $ export VISUAL='mate -w'
  
  To see versions of a sheet, use the --versions switch.
  $ cheat rspec --versions
  
  To see a diff to the current version, use the --diff switch.
  $ cheat rspec --diff 5
  
  To see a diff between two versions, use the start:end format.
  $ cheat rspec --diff 5:7
  
  Sheets are cached locally in ~/.cheat. To clear your cache, pass --new to cheat. You won't get updates unless you do this.
  $ cheat --new
  $ cheat strftime --new
  
  And to get all cached locally, you could do
  $ cheat sheets | grep '^ ' | xargs -n 1 cheat
  
  That's it!