aboutsummaryrefslogtreecommitdiff
path: root/.config/shell/git-prompt_examples/rprompt.zsh
diff options
context:
space:
mode:
authorBlista Kanjo2023-08-02 20:40:22 -0400
committerBlista Kanjo2023-08-02 20:40:22 -0400
commit0b8db4f1c67d001d7e43ac9154a6cbdbcfb1790e (patch)
tree45dfcfd0721c641a3b02b54dc9ec040861e6e63e /.config/shell/git-prompt_examples/rprompt.zsh
parentb8322b5b705e77e61800e9960bdac3e99bb23ac5 (diff)
feat: migrated `fish` config to `zsh` (may be buggy)
Diffstat (limited to '.config/shell/git-prompt_examples/rprompt.zsh')
-rw-r--r--.config/shell/git-prompt_examples/rprompt.zsh24
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/shell/git-prompt_examples/rprompt.zsh b/.config/shell/git-prompt_examples/rprompt.zsh
new file mode 100644
index 0000000..09d95b7
--- /dev/null
+++ b/.config/shell/git-prompt_examples/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)'