ANSI Terminal Codes - shawfdong/hyades GitHub Wiki
On Mac OS X, the Terminal application says its terminal type is:
$ echo $TERM xterm-256color
I have the following in my ~/.bash_profile:
NORMAL="\[\e[0m\]"
LRED="\[\e[0;31m\]"
RED="\[\e[1;31m\]"
GREEN="\[\e[1;32m\]"
BLUE="\[\e[1;34m\]"
PS1="$LRED\u@\h: $BLUE\w $RED\$ $NORMAL"
# function for setting terminal titles in OSX
function title {
printf "\033]0;%s\007" "$1"
}
function t {
title bash
clear
}