summaryrefslogtreecommitdiff
path: root/themes/strug.zsh-theme
diff options
context:
space:
mode:
authorleif.hanack <strug@web.de>2014-06-04 00:37:33 +0200
committerncanceill <nicolas.canceill@ens-cachan.org>2015-06-10 14:36:54 +0200
commit70c4a27fd6048c3213dd2f3bae21bff26005bc16 (patch)
tree38630e394da024b7ba4a85c8d7d8c8bba8c01778 /themes/strug.zsh-theme
parent41104f8af842cd9ba441255808053a36ef4fcd6b (diff)
downloadzsh-70c4a27fd6048c3213dd2f3bae21bff26005bc16.tar.gz
zsh-70c4a27fd6048c3213dd2f3bae21bff26005bc16.tar.bz2
zsh-70c4a27fd6048c3213dd2f3bae21bff26005bc16.zip
Added a possibility to display the remote branch and the number of commits you are ahead or behind
Diffstat (limited to 'themes/strug.zsh-theme')
-rw-r--r--themes/strug.zsh-theme25
1 files changed, 25 insertions, 0 deletions
diff --git a/themes/strug.zsh-theme b/themes/strug.zsh-theme
new file mode 100644
index 000000000..89b56b008
--- /dev/null
+++ b/themes/strug.zsh-theme
@@ -0,0 +1,25 @@
+# terminal coloring
+export CLICOLOR=1
+export LSCOLORS=dxFxCxDxBxegedabagacad
+
+local git_branch='$(git_prompt_info)%{$reset_color%}$(git_remote_status)'
+
+PROMPT="%{$fg[green]%}╭─%n@%m %{$reset_color%}%{$fg[yellow]%}in %~ %{$reset_color%}${git_branch}
+%{$fg[green]%}╰\$ %{$reset_color%}"
+
+ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[yellow]%}on "
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
+
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$reset_color%}%{$fg[red]%} ✘ %{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%} ✔ %{$reset_color%}"
+
+ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_DETAILED=true
+ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_PREFIX="%{$fg[yellow]%}("
+ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_SUFFIX="%{$fg[yellow]%})%{$reset_color%}"
+
+ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE=" +"
+ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE_COLOR=%{$fg[green]%}
+
+ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE=" -"
+ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE_COLOR=%{$fg[red]%}
+