aboutsummaryrefslogtreecommitdiff
path: root/.config/shell/git-prompts/rprompt.zsh
diff options
context:
space:
mode:
authorBlista Kanjo2023-08-02 20:59:28 -0400
committerBlista Kanjo2023-08-02 20:59:28 -0400
commit8f336a0fde17b5afe4640e7f53d7f6a041901297 (patch)
tree5aac26ec21ea85a8c4e0506b79c6d8a6b2849cae /.config/shell/git-prompts/rprompt.zsh
parentf6a56e7bce611a1aab71f351521bf4d2b946f729 (diff)
refactor: source all `zsh` plugins from `$HOME`
Diffstat (limited to '.config/shell/git-prompts/rprompt.zsh')
-rw-r--r--.config/shell/git-prompts/rprompt.zsh24
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/shell/git-prompts/rprompt.zsh b/.config/shell/git-prompts/rprompt.zsh
new file mode 100644
index 0000000..09d95b7
--- /dev/null
+++ b/.config/shell/git-prompts/rprompt.zsh
@@ -0,0 +1,24 @@
+# Name: Git status on the right
+
+ZSH_GIT_PROMPT_FORCE_BLANK=1
+ZSH_GIT_PROMPT_SHOW_UPSTREAM="symbol"
+
+ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg_bold[default]%}≺ "
+ZSH_THEME_GIT_PROMPT_SUFFIX=""
+ZSH_THEME_GIT_PROMPT_SEPARATOR=" "
+ZSH_THEME_GIT_PROMPT_DETACHED="%{$fg_no_bold[cyan]%}:"
+ZSH_THEME_GIT_PROMPT_BRANCH="%{$fg_no_bold[grey]%}"
+ZSH_THEME_GIT_PROMPT_UPSTREAM_SYMBOL="%{$fg_bold[yellow]%}⟳ "
+ZSH_THEME_GIT_PROMPT_UPSTREAM_PREFIX="%{$fg[red]%}(%{$fg[yellow]%}"
+ZSH_THEME_GIT_PROMPT_UPSTREAM_SUFFIX="%{$fg[red]%})"
+ZSH_THEME_GIT_PROMPT_BEHIND="%{$fg_no_bold[cyan]%}↓"
+ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_no_bold[cyan]%}↑"
+ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[red]%}✖"
+ZSH_THEME_GIT_PROMPT_STAGED="%{$fg[green]%}●"
+ZSH_THEME_GIT_PROMPT_UNSTAGED="%{$fg[red]%}✚"
+ZSH_THEME_GIT_PROMPT_UNTRACKED="…"
+ZSH_THEME_GIT_PROMPT_STASHED="%{$fg[blue]%}⚑"
+ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}✔"
+
+PROMPT='%B%~%b %F{blue}≻≻≻%f '
+RPROMPT='$(gitprompt)'