瀏覽代碼

add __my_alert_fail

pull/1/head
10sr 12 年之前
父節點
當前提交
e83963a00e
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      bashrc

+ 5
- 1
bashrc 查看文件

@@ -1042,6 +1042,10 @@ __my_ps1_jobs(){
jobs | wc -l jobs | wc -l
} }


__my_alert_fail(){
test $laststatus -eq 0 || echo '!!! '
}

if test "$TERM" != dumb if test "$TERM" != dumb
then then
__my_c1="\[\e[0;33m\]" # color for PWD __my_c1="\[\e[0;33m\]" # color for PWD
@@ -1067,7 +1071,7 @@ fi


_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_c4}:: ${__my_cdef}l${SHLVL}n\#j\js\$laststatus $(__my_ps1_scale)\D{%T} ${__my_ps1_str}\$(__my_alert_fail)\$ "
inbash && PS1=$_ps1_bash inbash && PS1=$_ps1_bash


__my_set_screen_title(){ __my_set_screen_title(){


Loading…
取消
儲存