From 822023215cbb350e423ee3300ece7a007a5f3b5f Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 21 Jun 2012 13:24:07 +0900 Subject: [PATCH] important fix of PS1 --- bashrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bashrc b/bashrc index 0d8910e..849b19a 100755 --- a/bashrc +++ b/bashrc @@ -490,11 +490,11 @@ __my_ps1_jobs(){ } if test "$TERM" != dumb then - __my_c1="\e[1;31m" # color for PWD - __my_c2="\e[0;36m" # color for user - __my_c3="\e[1;30m" # color for OLDPWD - __my_c4="\e[1;32m" # color for :: - __my_cdef="\e[0m" + __my_c1="\[\e[1;31m\]" # color for PWD + __my_c2="\[\e[0;36m\]" # color for user + __my_c3="\[\e[1;30m\]" # color for OLDPWD + __my_c4="\[\e[1;32m\]" # color for :: + __my_cdef="\[\e[0m\]" fi _PS1="\ ${__my_c4}:: ${__my_cdef}[${__my_c1}\w/${__my_cdef}<${__my_c3}\${OLDPWD}${__my_cdef}]\$(__my_ps1_git)\$(__my_ps1_bttry)\$(__my_ps1_ipaddr)\$(__my_ps1_moc)\n\