comparison .bashrc @ 87:a835f8c36e93

Fixed PS1 & vimdiff * PS1 had nonprintable characters in it, but bash didn't know that; so it wrapped in all the wrong places. * vimdiff was using different window placements than kdiff would use, leading to much confusion. This way feels nicer, leaving the "good" output file at the bottom.
author Steve Huston <huston@astro.princeton.edu>
date Wed, 01 May 2013 14:08:33 -0400
parents c75fecccc3e5
children 966c1e0b0a97
comparison
equal deleted inserted replaced
86:463fe15a340f 87:a835f8c36e93
20 # Environment variables 20 # Environment variables
21 # 21 #
22 #[[ "$PS1" ]] && export PS1='${debian_chroot:+($debian_chroot)}\e[01;32m\h\e[00m:\e[01;34m\w\e[00m\$ ' 22 #[[ "$PS1" ]] && export PS1='${debian_chroot:+($debian_chroot)}\e[01;32m\h\e[00m:\e[01;34m\w\e[00m\$ '
23 [[ "$PS1" ]] && { 23 [[ "$PS1" ]] && {
24 if [ -z "$DARWIN" ] ; then 24 if [ -z "$DARWIN" ] ; then
25 export PS1='${debian_chroot:+($debian_chroot)}\e[01;`case $EUID in 0) echo -n 31; ;; *) echo -n 32; ;; esac;`m\h\e[00m:\e[01;34m\w\e[00m\$ ' 25 export PS1='${debian_chroot:+($debian_chroot)}\[\e[01;`case $EUID in 0) echo -n 31; ;; *) echo -n 32; ;; esac;`m\]\h\[\e[00m\]:\[\e[01;34m\]\w\[\e[00m\]\$ '
26 else 26 else
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 RUBYLIB=$HOME/Installs/rubygems/lib 32 export RUBYLIB=$HOME/Installs/rubygems/lib