Cheat Sheets just got a lot better
written by Steven on February 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 complete_cheat {
COMPREPLY=()
if [ $COMP_CWORD = 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?
Business Owners: save hours per week with
LessAccounting. It's like Quickbooks, just not total shit.
Leave a Comment
About Steven
Popular Articles
Subscribe

Steven Bristol has written code for the past 20 years. He like green vegetables and kittens, oh and butterflies too. He loves to throw ninja stars at his enemies.
