浏览代码

always print PS1 from leftmost

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

+ 3
- 1
shrc 查看文件

@@ -1196,6 +1196,8 @@ __my_alert_fail(){
# About ansi escape sequences # About ansi escape sequences
# http://archive.linux.or.jp/JF/JFdocs/Bash-Prompt-HOWTO-5.html # http://archive.linux.or.jp/JF/JFdocs/Bash-Prompt-HOWTO-5.html
# http://www.grapecity.com/japan/powernews/column/clang/047/page02.htm # http://www.grapecity.com/japan/powernews/column/clang/047/page02.htm
# http://www5c.biglobe.ne.jp/~ecb/assembler2/b_2.html
# http://www.bjorfuan.com/hjp/appendix/esc.xhtml


__attr_beg='\[\033[' __attr_beg='\[\033['
__attr_end='m\]' __attr_end='m\]'
@@ -1260,7 +1262,7 @@ then
__my_cdef="$__color_default" __my_cdef="$__color_default"
fi fi


_ps1_bash="\
_ps1_bash="\r\
${__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)\$ "
inbash && PS1=$_ps1_bash inbash && PS1=$_ps1_bash


正在加载...
取消
保存