changeset 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 463fe15a340f
children 21e0ab41e180
files .bashrc .hgrc
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/.bashrc	Mon Apr 29 10:24:04 2013 -0400
+++ b/.bashrc	Wed May 01 14:08:33 2013 -0400
@@ -22,9 +22,9 @@
 #[[ "$PS1" ]] && export PS1='${debian_chroot:+($debian_chroot)}\e[01;32m\h\e[00m:\e[01;34m\w\e[00m\$ '
 [[ "$PS1" ]] && {
   if [ -z "$DARWIN" ] ; then
-    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\$ '
+    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\]\$ '
   else
-    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\$ '
+    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\]\$ '
   fi
 }
 export PAGER=less
--- a/.hgrc	Mon Apr 29 10:24:04 2013 -0400
+++ b/.hgrc	Wed May 01 14:08:33 2013 -0400
@@ -12,7 +12,7 @@
 
 [merge-tools]
 vimdiff.executable = vim
-vimdiff.args = -d $base $local $output $other -c "wincmd J"
+vimdiff.args = -d $output $base $local $other -c "wincmd J"
 
 [trusted]
 groups = help