mirror of
https://github.com/cheat/cheat.git
synced 2024-12-22 04:35:06 +01:00
Added some notes.
This commit is contained in:
parent
66166e3dd4
commit
8093424dbd
15
cheat
15
cheat
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user