summaryrefslogtreecommitdiff
path: root/themes/minimal.zsh-theme
diff options
context:
space:
mode:
authorRoman Kamyk <roman.kamyk@gmail.com>2011-09-15 12:56:40 +0200
committerRoman Kamyk <roman.kamyk@gmail.com>2011-09-15 12:56:40 +0200
commit2b55ee07534ec34a699805dc35ca83ad8e22fc7a (patch)
tree97f464ca865626aea1aa135e7eb9f629f4017171 /themes/minimal.zsh-theme
parentf71647fa85267d558d0d69034902f53aeeed67ad (diff)
parent762b55bb2bc0452ce3f5f2f21bc22b61936ef704 (diff)
downloadzsh-2b55ee07534ec34a699805dc35ca83ad8e22fc7a.tar.gz
zsh-2b55ee07534ec34a699805dc35ca83ad8e22fc7a.tar.bz2
zsh-2b55ee07534ec34a699805dc35ca83ad8e22fc7a.zip
Merge branch 'master' of http://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'themes/minimal.zsh-theme')
-rw-r--r--themes/minimal.zsh-theme15
1 files changed, 15 insertions, 0 deletions
diff --git a/themes/minimal.zsh-theme b/themes/minimal.zsh-theme
new file mode 100644
index 000000000..ee3ab6b22
--- /dev/null
+++ b/themes/minimal.zsh-theme
@@ -0,0 +1,15 @@
+ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[white]%}["
+ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}●%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_CLEAN=""
+
+#Customized git status, oh-my-zsh currently does not allow render dirty status before branch
+git_custom_status() {
+ local cb=$(current_branch)
+ if [ -n "$cb" ]; then
+ echo "- $ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_SUFFIX"
+ fi
+}
+
+
+PROMPT='%2~ $(git_custom_status) »%b ' \ No newline at end of file