botherbother 0.1 → 0.1.01
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/botherbother.rb +10 -1
- metadata +1 -1
data/lib/botherbother.rb
CHANGED
@@ -51,7 +51,16 @@ $tips = [
|
|
51
51
|
"You can use 'alias' to create aliases for commonly used and/or long commands.",
|
52
52
|
"Didn't understand a tip? Google it!",
|
53
53
|
"Want to run more than one command on a line? Separate them with a semicolon ';'.",
|
54
|
-
|
54
|
+
"When programs like grep or echo let you type to stdin, they're waiting for ctrl-d (EOF) to end it!",
|
55
|
+
"use du to check disk space usage, du | sort -g to find largest files!",
|
56
|
+
"use >> to append to a file from stdout instead of overwriting it with >",
|
57
|
+
"use tree to make a ascii representation of a directory tree that's easy to share",
|
58
|
+
"separate multiple commands with && to run the next only if no errors in the previous",
|
59
|
+
"ctrl-z (suspend) then bg to rescue a terminal you froze by launging a GUI prog in it",
|
60
|
+
"frozen terminal? You might have hit ctrl-s - try ctrl-q to resume it!",
|
61
|
+
"Know what shell you're using! Customize it with an .?rc file! Use a DVCS to maintain it!",
|
62
|
+
"Are you using plain ls when you type ls? Try 'alias ls' to find out!"
|
63
|
+
]
|
55
64
|
|
56
65
|
def bother
|
57
66
|
"-= #{$tips.sample} =-"
|