Cheat Sheets just got a lot better

Written by on Feb 12 2008

For those of you who do not use Cheat Sheets, you should.

For those of you that do, they just got better. There is now an auto complete for bash. You can find it here Text:

sheets=cheat sheets | grep '^ ' function completecheat { COMPREPLY=() if [$COMPCWORD = 1]; then COMPREPLY=(compgen -W "$sheets" -- $2) fi } complete -F complete_cheat cheat

 

Here are the instructions:

  • Open terminal.
  • cd ~
  • Copy this text into your .bash_profile file.
  • ither restart your terminal or run source .bash_profile
  • Type cheat str(TAB)
  • Cool huh?
Meet
Steven

Hi I'm Steven,

I wrote the article you're reading... I lead the developers, write music, used to race motorcycles, and help clients find the right features to build on their product.

Get Blog Updates