|
@@ -1066,15 +1066,6 @@ then |
|
|
__my_cdef="\[\e[0m\]" |
|
|
__my_cdef="\[\e[0m\]" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
# export _LAST_STATUS=a |
|
|
|
|
|
# __my_export_last_status(){ |
|
|
|
|
|
# local last=$? |
|
|
|
|
|
# echo $last |
|
|
|
|
|
# export _LAST_STATUS=$last |
|
|
|
|
|
# echo $_LAST_STATUS |
|
|
|
|
|
# return $last |
|
|
|
|
|
# } |
|
|
|
|
|
|
|
|
|
|
|
_ps1_bash="\ |
|
|
_ps1_bash="\ |
|
|
${__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}[${__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\$laststatus $(__my_ps1_scale)\D{%T} ${__my_ps1_str}\$(__my_alert_fail)\$ " |
|
|
${__my_c4}:: ${__my_cdef}l${SHLVL}n\#j\js\$laststatus $(__my_ps1_scale)\D{%T} ${__my_ps1_str}\$(__my_alert_fail)\$ " |
|
@@ -1101,3 +1092,4 @@ __my_set_title(){ |
|
|
PROMPT_COMMAND="__my_set_title \${USER}@\${HOSTNAME}\:\${PWD}; |
|
|
PROMPT_COMMAND="__my_set_title \${USER}@\${HOSTNAME}\:\${PWD}; |
|
|
__my_set_screen_title \$(basename \"\$PWD\")/" |
|
|
__my_set_screen_title \$(basename \"\$PWD\")/" |
|
|
PROMPT_COMMAND="laststatus=\$?;$PROMPT_COMMAND" |
|
|
PROMPT_COMMAND="laststatus=\$?;$PROMPT_COMMAND" |
|
|
|
|
|
laststatus=0 |