Browse Source

Merge branch 'master' of github.com:10sr/dotfiles

pull/1/head
10sr 12 years ago
parent
commit
87a6930966
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      bashrc

+ 6
- 6
bashrc View File

@@ -454,10 +454,10 @@ __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 c4="\e[32m" # color for ::
local c3="\e[1;30m" # color for OLDPWD
local c4="\e[1;32m" # color for ::
local cdef="\e[0m"
fi
if iswindows
@@ -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} "

}
_PS1="\e[32m:: \e[0m[\e[31m\w/\e[0m]\n\


Loading…
Cancel
Save