Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias less='less --RAW-CONTROL-CHARS'
- export LS_OPTS='--color=auto'
- alias ls='ls ${LS_OPTS}
- export LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00:pi=40;33'
- PS1='e[33;1mu@h: e[31mWe[0m$ '
- PS1='e[se[0;0He[1;33mh tne[1;32mThis is my computere[u[u@h: w]$ '
- sed "s/[^[[0-9;]*[a-zA-Z]//gi"
- sed "s/^[^[8m.*$//gi"
- export TERM=xterm-color
- export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
- export CLICOLOR=1
- export LSCOLORS=ExFxCxDxBxegedabagacad
- export COLOR_NC='e[0m' # No Color
- export COLOR_WHITE='e[1;37m'
- export COLOR_BLACK='e[0;30m'
- export COLOR_BLUE='e[0;34m'
- export COLOR_LIGHT_BLUE='e[1;34m'
- export COLOR_GREEN='e[0;32m'
- export COLOR_LIGHT_GREEN='e[1;32m'
- export COLOR_CYAN='e[0;36m'
- export COLOR_LIGHT_CYAN='e[1;36m'
- export COLOR_RED='e[0;31m'
- export COLOR_LIGHT_RED='e[1;31m'
- export COLOR_PURPLE='e[0;35m'
- export COLOR_LIGHT_PURPLE='e[1;35m'
- export COLOR_BROWN='e[0;33m'
- export COLOR_YELLOW='e[1;33m'
- export COLOR_GRAY='e[0;30m'
- export COLOR_LIGHT_GRAY='e[0;37m'
- case $TERM in
- xterm*|rxvt*)
- local TITLEBAR='[ 33]0;u ${NEW_PWD} 07]'
- ;;
- *)
- local TITLEBAR=""
- ;;
- esac
- local UC=$COLOR_WHITE # user's color
- [ $UID -eq "0" ] && UC=$COLOR_RED # root's color
- PS1="$TITLEBARn[${UC}]u [${COLOR_LIGHT_BLUE}]${PWD} [${COLOR_BLACK}]$(vcprompt) n[${COLOR_LIGHT_GREEN}]→[${COLOR_NC}] "
- # 'tput bold' will work regardless of the foreground and background colors.
- # Place the tput output into variables, so they are only execd once.
- bold=$(tput bold) # This could also be a color.
- reset=$(tput sgr0)
- export PS1="u@[$bold]h[$reset]:w $ "
- # Set some options, based on the OS
- OS=`uname -s`
- case "$OS" in
- "SunOS" )
- # Solaris ls doesn't allow color, so use special characters
- LS_OPTS='-F'
- alias ls='ls ${LS_OPTS}'
- ;;
- "Linux" )
- # GNU ls supports colors!
- # See dircolors to customize colors
- export LS_OPTS='--color=auto'
- alias ls='ls ${LS_OPTS}'
- # Get color support for 'less'
- export LESS="--RAW-CONTROL-CHARS"
- # Use colors for less, man, etc.
- [[ -f ~/.LESS_TERMCAP ]] && . ~/.LESS_TERMCAP
- export GREP_OPTIONS="--color=auto"
- ;;
- "Darwin"|"FreeBSD")
- # Most FreeBSD & Apple Darwin supports colors
- export CLICOLOR=true
- # Get color support for 'less'
- export LESS="--RAW-CONTROL-CHARS"
- # Use colors for less, man, etc.
- [[ -f ~/.LESS_TERMCAP ]] && . ~/.LESS_TERMCAP
- export GREP_OPTIONS="--color=auto"
- ;;
- * )
- echo "Unknown OS [$OS]"
- ;;
- esac
- git_branch () { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* (.*)/1/'; }
- HOST='