Added some notes.

This commit is contained in:
Chris Lane 2013-08-09 23:46:34 -04:00
parent 66166e3dd4
commit 8093424dbd

15
cheat
View File

@ -7,6 +7,19 @@ keyphrase = ' '.join(sys.argv[1:])
# create a dictionary of cheatsheets
cheatsheets = {
# @todo:
# - adb
# - apt-cache
# - dd
# - fdisk
# - mount
# - nc
# - rsync
# - shred
# - useradd / adduser
# @see: http://www.thegeekstuff.com/2010/11/50-linux-commands/
########## bash ###############################################################
'bash' : '''
To implement a for loop:
@ -133,6 +146,8 @@ tar -cjvf /path/to/foo.tgz /path/to/foo/
}
# @todo: demonstrate some keyphrase aliases here
# print help if requested
if keyphrase in ['', 'help', '--help', '-h']:
cheatsheets_sorted = cheatsheets.keys()