diff options
author | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-06-14 18:09:53 +0300 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-06-14 18:09:53 +0300 |
commit | e114c92b6646bd35ee924da73479311e2c18583d (patch) | |
tree | 724ab5a4ef3b46a4fbfb0b360ec67f4a9f0217c5 | |
parent | README (diff) | |
download | git-prompt-e114c92b6646bd35ee924da73479311e2c18583d.tar.gz git-prompt-e114c92b6646bd35ee924da73479311e2c18583d.tar.bz2 git-prompt-e114c92b6646bd35ee924da73479311e2c18583d.zip |
local split into head_local and tail_local
-rwxr-xr-x | prompt | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -248,13 +248,15 @@ PROMPT_COMMAND=' ### compose local label eval git_color="\${git_$status}" eval esc_string="\$$git_color" - local="${branch+$esc_string ($branch) }" + head_local="${branch+$esc_string ($branch)}" fi ######################### + + head_local="${head_local+$head_local\n}" #PS1="$label$rc'$color_who_where$dir_color'${head:10*(${#PWD}<max)}${PWD:(${#PWD}>max)*(${#PWD}-max):max}> '$colors_reset'" - PS1="$label$rc'$color_who_where$dir_color'\w$local$dir_color> '$colors_reset'" + PS1="$head_local$colors_reset$label$rc'$color_who_where$dir_color'\w$tail_local$dir_color> '$colors_reset'" unset local ' #echo \"$color_who_where\" |