a15a8c4a98bc1aff024c3ef44dec48309ff4f90b

Author
James Smith <james@loopj.com>
Committer
James Smith <james@loopj.com>
Date

Message

New theme 'intheloop' which demonstrates the git_remote_status function

Diff

 1diff --git a/themes/intheloop.zsh-theme b/themes/intheloop.zsh-theme
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..c4736422dc72c94713a12828040ad2b924520a34
 4--- /dev/null
 5+++ b/themes/intheloop.zsh-theme
 6@@ -0,0 +1,18 @@
 7+# ZSH theme by James Smith (http://loopj.com)
 8+# A multiline prompt with username, hostname, full path, return status, git branch, git dirty status, git remote status
 9+
10+local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%}"
11+
12+PROMPT='
13+%{$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)
14+%{$fg_bold[cyan]%}❯%{$reset_color%} '
15+
16+RPROMPT='${return_status}%{$reset_color%}'
17+
18+ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[grey]%}(%{$fg[red]%}"
19+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
20+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[grey]%}) %{$fg[yellow]%}⚡%{$reset_color%}"
21+ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[grey]%})"
22+ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE="%{$fg_bold[magenta]%}↓%{$reset_color%}"
23+ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="%{$fg_bold[magenta]%}↑%{$reset_color%}"
24+ZSH_THEME_GIT_PROMPT_DIVERGED_REMOTE="%{$fg_bold[magenta]%}↕%{$reset_color%}"