From 12f02bbbdeb218787a62f038e2d88266c3f0345d Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 25 Nov 2013 12:03:19 +0900 Subject: [PATCH] Revert "always print PS1 from leftmost" This reverts commit 6ab5e199f90bb4da03bc7f96e68492e9fc94b21d. --- shrc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shrc b/shrc index 3d6e63e..95ded63 100755 --- a/shrc +++ b/shrc @@ -1196,8 +1196,6 @@ __my_alert_fail(){ # About ansi escape sequences # http://archive.linux.or.jp/JF/JFdocs/Bash-Prompt-HOWTO-5.html # 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_end='m\]' @@ -1262,7 +1260,7 @@ then __my_cdef="$__color_default" fi -_ps1_bash="\r\ +_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}l${SHLVL}n\#j\js\$laststatus $(__my_ps1_scale)\D{%T} ${__my_ps1_str}\$(__my_alert_fail)\$ " inbash && PS1=$_ps1_bash