>Tip-Of-The-Day
Last Edit: Aug. 10, 2010, 2:12 p.m.
OK, so this is more of the "Tip of the whenever I get around to adding a new tip."
Stop getting rid of that man page!
Pimp your prompt
This will give you a nice prompt. A colored line with the username, hostname, current directory, and time followed by a blank line for inputting commands. The color will change based upon the exit status of the last command.
GREEN="\[\033[0;32m\]"
DEFAULT_COLOR="\[\033[00m\]"
RED="\[\033[0;31m\]"
PROMPTSTUFF="[\u@\h] [\d\@] [\w]"
export PS1="\`if [ \$? = 0 ];then
echo -e '$GREEN$PROMPTSTUFF\
\$ $DEFAULT_COLOR';
else
echo -e '$RED$PROMPTSTUFF\
\$ $DEFAULT_COLOR';
fi \`"
DanoMagnum.com