浏览代码

update PS1

pull/1/head
10sr 12 年前
父节点
当前提交
0aa7a87e4a
共有 1 个文件被更改,包括 11 次插入3 次删除
  1. +11
    -3
      bashrc

+ 11
- 3
bashrc 查看文件

@@ -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(){


正在加载...
取消
保存