Browse Source

fix prompt

pull/1/head
10sr 12 years ago
parent
commit
a01005c865
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      bashrc

+ 4
- 3
bashrc View File

@@ -474,13 +474,14 @@ __my_ps1_jobs(){
if test "$TERM" != dumb
then
__my_c1="\e[1;31m" # color for PWD
__my_c2="\e[36m" # color for user
__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}\${PWD}${__my_cdef}]\$(__my_ps1_bttry)\$(__my_ps1_ipaddr)\n\
${__my_c4}:: ${__my_cdef}${__my_c2}\u@\H${__my_cdef} \D{%a, %d %b %Y %T %z} ${SHELL} \V\n\
_PS1="\
${__my_c4}:: ${__my_cdef}[${__my_c1}\w/${__my_cdef}<${__my_c3}\${PWD}${__my_cdef}]\$(__my_ps1_bttry)\$(__my_ps1_ipaddr)\n\
${__my_c4}:: ${__my_c2}\u@\H${__my_cdef} \D{%a, %d %b %Y %T %z} ${SHELL} \V\n\
${__my_c4}:: ${__my_cdef}shlv:${SHLVL} hist:\! jobs:\j last:\$? \$ "
PS1=$_PS1



Loading…
Cancel
Save