From aba6e1fe376d6f8834e1895d1b3190be6e8c925b Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 4 Jun 2012 20:50:58 +0900 Subject: [PATCH] update prompt --- bashrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bashrc b/bashrc index 3e079f6..8274fb6 100755 --- a/bashrc +++ b/bashrc @@ -453,9 +453,9 @@ __my_prompt_function(){ # used by PS1 local c3= local cdef= else - local c1="\e[31m" # color for PWD + local c1="\e[1;31m" # color for PWD local c2="\e[36m" # color for user - local c3="\e[37m" # color for OLDPWD + local c3="\e[1;30m" # color for OLDPWD local c4="\e[1;32m" # color for :: local cdef="\e[0m" fi @@ -483,9 +483,9 @@ __my_prompt_function(){ # used by PS1 fi # local battery=$(battery-state [%s] | sed -e 's`%`%%`g') # very slow - printf "${c4}:: ${cdef}[${c1}${pwd}${cdef}<${c3}${oldpwd}${cdef}]${git}${svn}${battery}${ip}\n" - printf "${c4}:: ${c2}${USER}@${HOSTNAME}${cdef} ${date}\n" - printf "${c4}:: ${cdef}shlv:${SHLVL} dirs:${dirs} last:${lastreturn} " + printf "${c4}::${cdef} [${c1}${pwd}${cdef}<${c3}${oldpwd}${cdef}]${git}${svn}${battery}${ip}\n" + printf "${c4}::${cdef} ${c2}${USER}@${HOSTNAME}${cdef} ${date}\n" + printf "${c4}::${cdef} shlv:${SHLVL} dirs:${dirs} last:${lastreturn} " } __my_set_title(){