summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2013-08-23 11:12:23 +0200
committerHugues Hiegel <hugues.hiegel@qosmos.com>2013-08-23 11:12:23 +0200
commit0bfce961845e423f24d3d7015dde05b9a5917d07 (patch)
treeae0b108a46cbc14e9f17ed3b475249c379efea42
parent61301a7ca3fca550e5fd5c61cd20d72f5c65b4e7 (diff)
[Prompts][Git] Shows submodules path
-rw-r--r--12_Prompts.zsh2
-rw-r--r--net:foret/Prompts.zsh2
2 files changed, 2 insertions, 2 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh
index c45aab9..8f7ce37 100644
--- a/12_Prompts.zsh
+++ b/12_Prompts.zsh
@@ -232,7 +232,7 @@ __subvcsbranches () {
if [ -d $(dirname $GIT_DIR)/$SUBMODULE ]
then
GITBRANCH+=${GITBRANCH:+$(tput cuf1)}
- GITBRANCH+=$C_$_prompt_colors[bar]$_C"["
+ GITBRANCH+=$C_$_prompt_colors[bar]$_C"[%{%B%}$SUBMODULE%{%b%}:"
GITBRANCH+=$(__get_git_fullstatus $(dirname $GIT_DIR)/$SUBMODULE)
GITBRANCH+=$C_$_prompt_colors[bar]$_C"]"
fi
diff --git a/net:foret/Prompts.zsh b/net:foret/Prompts.zsh
index 1e88822..ec93403 100644
--- a/net:foret/Prompts.zsh
+++ b/net:foret/Prompts.zsh
@@ -97,7 +97,7 @@ __subvcsbranches () {
if [ -d $(dirname $GIT_DIR)/$SUBMODULE ]
then
GITBRANCH+=${GITBRANCH:+$(tput cuf1)}
- GITBRANCH+=$C_$_prompt_colors[bar]$_C"["
+ GITBRANCH+=$C_$_prompt_colors[bar]$_C"[%{%B%}$SUBMODULE%{%b%}:"
GITBRANCH+=$(__get_git_fullstatus $(dirname $GIT_DIR)/$SUBMODULE | sed 's/_for_\(ixm\|df\)/’/g')
GITBRANCH+=$C_$_prompt_colors[bar]$_C"]"
fi