cheat sheets.

$ cheat bash_complete
--- bash_complete version 1	Fri Feb 01 00:07:16 +0000 2008
+++ bash_complete version 2	Thu Jul 03 15:18:41 +0000 2008
@@ -1,18 +1,18 @@
 A bash snippet to have auto-complete for
 the 'cheat' gem.
 
 Use by typing :
   $ cheat str<tab>
 and get:
   strftime       string         string_unpack
 
 -------- bash script --------
-sheets=`cheat sheets | grep '^  '`
 function complete_cheat {
   COMPREPLY=()
   if [ $COMP_CWORD = 1 ]; then
+    sheets=`cheat sheets | grep '^  '`
     COMPREPLY=(`compgen -W "$sheets" -- $2`)
   fi
 }
 complete -F complete_cheat cheat
. o 0 (history | current )
( add new | see all )