Friday, August 3, 2007

Sample .bashrc

# Set the following to make all x terminals have proper PS1 and PS2
# \033[0;30m - Black
# \033[0;31m - Red
# \033[0;32m - Green
# \033[0;33m - Orange
# \033[0;34m - Blue
# \033[0;35m - Cyan
# \033[0;36m - Light Blue
# \033[0;37m - Grey
# \033[0;39m - White
export PS1='\u@\h:\w\$'
export PS2='> '

# Below sets the titlebar of the terminal windows
export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'

# Display fortune for each new terminal session, and enable colors in ls output
for profile_script in '/etc/profile.d/bsd-games-login-fortune.sh' '/etc/profile.d/coreutils-dircolors.sh' ; do
if [ -x $profile_script ]; then
. $profile_script
fi
done
unset profile_script

No comments: