summaryrefslogtreecommitdiff
path: root/12_Prompts.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2013-11-13 17:16:59 +0100
committerHugues Hiegel <hugues.hiegel@qosmos.com>2013-11-13 17:16:59 +0100
commit7c7a77c803f8c71f988a6ff75eafe19c4c320f55 (patch)
tree19d652d9dc66902ffb079389ab1aa3402f07c8bd /12_Prompts.zsh
parent374c34da6de535a5dc2cfb47048223e1c0e82488 (diff)
[Prompts] Submodules & submodules
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r--12_Prompts.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh
index 7a184d1..979c340 100644
--- a/12_Prompts.zsh
+++ b/12_Prompts.zsh
@@ -229,7 +229,7 @@ __subvcsbranches () {
# Get recursive submodules statuses
for SUBMODULE in $(git config --get zsh.recurse-dirs)
do
- if [ -d $(dirname $GIT_DIR)/$SUBMODULE ]
+ if [ -d $(dirname $GIT_DIR)/$SUBMODULE/.git -o -d $GIT_DIR/modules/$SUBMODULE ]
then
GITBRANCH+=${GITBRANCH:+$(tput cuf1)}
GITBRANCH+=$C_$_prompt_colors[bar]$_C"[%{%B%}$SUBMODULE%{%b%}:"