root/env/.bashrc

Revision 3, 0.6 kB (checked in by devja..@anarkystic.com, 1 year ago)

sendin the env down the rivarr

Line 
1 #
2 #   termie's bash interactive stuffs
3 #
4
5 # change the window title of X terminals
6 case $TERM in
7         xterm*|rxvt|Eterm|eterm)
8                 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
9                 ;;
10         screen)
11                 PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
12                 ;;
13 esac
14
15 PROMPT_COLOR='0;32m'
16 if [ ${UID} -eq 0 ]; then
17     PROMPT_COLOR='0;31m'
18 fi
19
20 ESCAPED_HOME=`echo $HOME | sed -r "s:/:\\\\\\/:g"`
21
22 PS1='\[\033[${PROMPT_COLOR}\]\u@\h\[\033[0;0m\]:`pwd | sed -r "s/${ESCAPED_HOME}/~/" | sed -r "s/^.*(\/.*)(\/.*)(\/.*)$/\1\2\3/" ` \$ '
23
24 [ -f $HOME/.commonrc ] && . $HOME/.commonrc
Note: See TracBrowser for help on using the browser.