summaryrefslogtreecommitdiff
path: root/themes/alanpeabody.zsh-theme
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2011-06-01 14:05:12 -0700
committerRobby Russell <robby@planetargon.com>2011-06-01 14:05:12 -0700
commit1f9b31ea347d51046720c67428a0593aedad1b6a (patch)
tree7b8967c01587bb7329b093f7ef5da0a112b66a55 /themes/alanpeabody.zsh-theme
parent7b0b83623fb54d21932014c9a6267e6dc03976db (diff)
parent1816e957770f8e3f0ad22658f741c5f0492da982 (diff)
downloadzsh-1f9b31ea347d51046720c67428a0593aedad1b6a.tar.gz
zsh-1f9b31ea347d51046720c67428a0593aedad1b6a.tar.bz2
zsh-1f9b31ea347d51046720c67428a0593aedad1b6a.zip
Merge pull request #383 from alanpeabody/master
My theme
Diffstat (limited to 'themes/alanpeabody.zsh-theme')
-rw-r--r--themes/alanpeabody.zsh-theme22
1 files changed, 22 insertions, 0 deletions
diff --git a/themes/alanpeabody.zsh-theme b/themes/alanpeabody.zsh-theme
new file mode 100644
index 000000000..1f66f1ec3
--- /dev/null
+++ b/themes/alanpeabody.zsh-theme
@@ -0,0 +1,22 @@
+
+local user='%{$fg[magenta]%}%n@%{$fg[magenta]%}%m%{$reset_color%}'
+local pwd='%{$fg[blue]%}%~%{$reset_color%}'
+local rvm='%{$fg[green]%}‹$(rvm-prompt i v g)›%{$reset_color%}'
+local return_code='%(?..%{$fg[red]%}%? ↵%{$reset_color%})'
+local git_branch='$(git_prompt_status)%{$reset_color%}$(git_prompt_info)%{$reset_color%}'
+
+ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}"
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_DIRTY=""
+ZSH_THEME_GIT_PROMPT_CLEAN=""
+
+ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} ✚"
+ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%} ✹"
+ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✖"
+ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} ➜"
+ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} ═"
+ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ✭"
+
+PROMPT="${user} ${pwd}$ "
+RPROMPT="${return_code} ${git_branch} ${rvm}"
+