comparison .bashrc @ 85:c75fecccc3e5

HG config changes: * Move hgeditor to .hgrc out of .bashrc * Create $HOST variable * $HOST-switched includes for fine tuning environments based on hostname
author Steve Huston <huston@astro.princeton.edu>
date Wed, 24 Apr 2013 14:18:18 -0400
parents fe021064d723
children a835f8c36e93
comparison
equal deleted inserted replaced
84:fe021064d723 85:c75fecccc3e5
27 export PS1='${debian_chroot:+($debian_chroot)}\e[01;`case $EUID in 0) echo "31\c"; ;; *) echo -n 32; ;; esac;`m\h\e[00m:\e[01;34m\w\e[00m\$ ' 27 export PS1='${debian_chroot:+($debian_chroot)}\e[01;`case $EUID in 0) echo "31\c"; ;; *) echo -n 32; ;; esac;`m\h\e[00m:\e[01;34m\w\e[00m\$ '
28 fi 28 fi
29 } 29 }
30 export PAGER=less 30 export PAGER=less
31 export EDITOR=vim 31 export EDITOR=vim
32 export HGEDITOR=$HOME/bin/hgeditor
33 export RUBYLIB=$HOME/Installs/rubygems/lib 32 export RUBYLIB=$HOME/Installs/rubygems/lib
34 export GEM_HOME=$HOME/Installs/rubygems/gems 33 export GEM_HOME=$HOME/Installs/rubygems/gems
34 export HOST=`hostname -s`
35 35
36 # If this is an xterm set the title to user@host:dir 36 # If this is an xterm set the title to user@host:dir
37 case $TERM in 37 case $TERM in
38 xterm*|rxvt*) 38 xterm*|rxvt*)
39 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"' 39 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'