summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorJames Smith <james@loopj.com>2011-03-19 17:51:22 -0700
committerJames Smith <james@loopj.com>2011-03-19 17:51:22 -0700
commita15a8c4a98bc1aff024c3ef44dec48309ff4f90b (patch)
treece977ddfb729f42e9c40e773c29e2e45bfd798aa /themes
parent2d5412e99be6d9fab50169ad0cf290e022fc6e9b (diff)
downloadzsh-a15a8c4a98bc1aff024c3ef44dec48309ff4f90b.tar.gz
zsh-a15a8c4a98bc1aff024c3ef44dec48309ff4f90b.tar.bz2
zsh-a15a8c4a98bc1aff024c3ef44dec48309ff4f90b.zip
New theme 'intheloop' which demonstrates the git_remote_status function
Diffstat (limited to 'themes')
-rw-r--r--themes/intheloop.zsh-theme18
1 files changed, 18 insertions, 0 deletions
diff --git a/themes/intheloop.zsh-theme b/themes/intheloop.zsh-theme
new file mode 100644
index 000000000..c4736422d
--- /dev/null
+++ b/themes/intheloop.zsh-theme
@@ -0,0 +1,18 @@
+# ZSH theme by James Smith (http://loopj.com)
+# A multiline prompt with username, hostname, full path, return status, git branch, git dirty status, git remote status
+
+local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%}"
+
+PROMPT='
+%{$fg_bold[grey]%}[%{$reset_color%}%{$fg_bold[green]%}%n@%m%{$reset_color%}%{$fg_bold[grey]%}]%{$reset_color%} %{$fg_bold[blue]%}%10c%{$reset_color%} $(git_prompt_info) $(git_remote_status)
+%{$fg_bold[cyan]%}❯%{$reset_color%} '
+
+RPROMPT='${return_status}%{$reset_color%}'
+
+ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[grey]%}(%{$fg[red]%}"
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[grey]%}) %{$fg[yellow]%}⚡%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[grey]%})"
+ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE="%{$fg_bold[magenta]%}↓%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="%{$fg_bold[magenta]%}↑%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_DIVERGED_REMOTE="%{$fg_bold[magenta]%}↕%{$reset_color%}" \ No newline at end of file