0eba5364bf862bc4daa50a16cb4c3600cf8a26b4
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #365 from briankftse/master
Added a new theme
Diff
1diff --git a/themes/minimal.zsh-theme b/themes/minimal.zsh-theme
2new file mode 100644
3index 0000000000000000000000000000000000000000..ee3ab6b224a097a3072d894ac111d11adc7bf77c
4--- /dev/null
5+++ b/themes/minimal.zsh-theme
6@@ -0,0 +1,15 @@
7+ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[white]%}["
8+ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
9+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}●%{$reset_color%}"
10+ZSH_THEME_GIT_PROMPT_CLEAN=""
11+
12+#Customized git status, oh-my-zsh currently does not allow render dirty status before branch
13+git_custom_status() {
14+ local cb=$(current_branch)
15+ if [ -n "$cb" ]; then
16+ echo "- $ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_SUFFIX"
17+ fi
18+}
19+
20+
21+PROMPT='%2~ $(git_custom_status) »%b '