Browse Source

update PS1

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

+ 11
- 3
bashrc View File

@@ -671,7 +671,7 @@ __my_ps1_script(){
}
__my_ps1_scale(){
local last=$?
echo "[LC:${LINES}x${COLUMNS}]"
printf "${LINES}x${COLUMNS}"
return $last
}
__my_ps1_tmux(){
@@ -736,9 +736,17 @@ then
__my_c5="\[\e[30;47m\]" # color for SCR
__my_cdef="\[\e[0m\]"
fi

export _LAST_STATUS=$?
__my_export_last_status(){
export _LAST_STATUS=$?
echo $_LAST_STATUS
return $_LAST_STATUS
}

_PS1="\
${__my_c4}:: ${__my_cdef}[${__my_c2}\u@\H${__my_cdef}:${__my_c1}\w/${__my_cdef}]\$(__my_ps1_scale)\$(__my_ps1_git)\$(__my_ps1_bttry)\$(__my_ps1_ipaddr)\$(__my_ps1_moc)\n\
${__my_c4}:: ${__my_cdef}l${SHLVL}n\#j\js\$? \D{%T} $(__my_ps1_script)\$ "
${__my_c4}:: ${__my_cdef}[${__my_c2}\u@\H${__my_cdef}:${__my_c1}\w/${__my_cdef}]\$(__my_ps1_git)\$(__my_ps1_bttry)\$(__my_ps1_ipaddr)\$(__my_ps1_moc)\n\
${__my_c4}:: ${__my_cdef}l${SHLVL}n\#j\js\$? $(__my_ps1_scale) \D{%T} $(__my_ps1_script)\$ "
PS1=$_PS1

__my_set_title(){


Loading…
Cancel
Save