summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2012-12-01 11:40:44 -0800
committerRobby Russell <robby@planetargon.com>2012-12-01 11:40:44 -0800
commit3657bf8efa783873d19660cfcb6405ae824ee2cc (patch)
treeea2dd75bb6902681f2abc50dd76c34a55e2e1fa7 /themes
parent25a2f029a48fee31c67b64de2b8c24d70beebd4b (diff)
parent7c768543df965ce5102b34e83fab78cf5e73b626 (diff)
downloadzsh-3657bf8efa783873d19660cfcb6405ae824ee2cc.tar.gz
zsh-3657bf8efa783873d19660cfcb6405ae824ee2cc.tar.bz2
zsh-3657bf8efa783873d19660cfcb6405ae824ee2cc.zip
Merge pull request #1421 from cristim/master
Added a small mod of the tjkirch theme
Diffstat (limited to 'themes')
-rw-r--r--themes/tjkirch_mod.zsh-theme13
1 files changed, 13 insertions, 0 deletions
diff --git a/themes/tjkirch_mod.zsh-theme b/themes/tjkirch_mod.zsh-theme
new file mode 100644
index 000000000..1b206a7e1
--- /dev/null
+++ b/themes/tjkirch_mod.zsh-theme
@@ -0,0 +1,13 @@
+ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}"
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡"
+ZSH_THEME_GIT_PROMPT_CLEAN=""
+
+function prompt_char {
+ if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
+}
+
+PROMPT='%(?,,%{$fg[red]%}FAIL: $?%{$reset_color%}
+)%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info) %_$(prompt_char) '
+
+RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'