summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2013-04-12 06:17:19 -0700
committerRobby Russell <robby@planetargon.com>2013-04-12 06:17:19 -0700
commit85426a57a2561f675a6ad51754d6687c3ec571c2 (patch)
tree1ea6e29bddbfcdb803967bcfe27c91c3ae8d518b
parent085af13b47724bdd4aad55bb706303013dc6240c (diff)
parent021e6de3237402aabd7e8bc0b99726a5149c33ef (diff)
downloadzsh-85426a57a2561f675a6ad51754d6687c3ec571c2.tar.gz
zsh-85426a57a2561f675a6ad51754d6687c3ec571c2.tar.bz2
zsh-85426a57a2561f675a6ad51754d6687c3ec571c2.zip
Merge pull request #1526 from filipechagas/master
Gitfast plugin - Untracked files char not shown %
-rw-r--r--plugins/gitfast/git-prompt.sh2
-rw-r--r--themes/crcandy.zsh-theme8
2 files changed, 9 insertions, 1 deletions
diff --git a/plugins/gitfast/git-prompt.sh b/plugins/gitfast/git-prompt.sh
index bf20491ec..afd76e86e 100644
--- a/plugins/gitfast/git-prompt.sh
+++ b/plugins/gitfast/git-prompt.sh
@@ -275,7 +275,7 @@ __git_ps1 ()
if [ -n "${GIT_PS1_SHOWUNTRACKEDFILES-}" ]; then
if [ -n "$(git ls-files --others --exclude-standard)" ]; then
- u="%"
+ u="%%"
fi
fi
diff --git a/themes/crcandy.zsh-theme b/themes/crcandy.zsh-theme
new file mode 100644
index 000000000..0a63c1245
--- /dev/null
+++ b/themes/crcandy.zsh-theme
@@ -0,0 +1,8 @@
+PROMPT=$'
+%{$fg_bold[green]%}%n@%m %{$fg[blue]%}%D{[%I:%M:%S]} %{$reset_color%}%{$fg[white]%}[%~]%{$reset_color%} $(git_prompt_info)\
+%{$fg[blue]%}->%{$fg_bold[blue]%} %#%{$reset_color%} '
+
+ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}["
+ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}*%{$fg[green]%}"
+ZSH_THEME_GIT_PROMPT_CLEAN=""