Created
October 29, 2021 23:31
-
-
Save DrJume/fbdea5640f5ed9ded34043e00171c503 to your computer and use it in GitHub Desktop.
OhMyZsh avit theme with git remote status & lambda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/themes/avit.zsh-theme b/themes/avit.zsh-theme | |
index 1e20d8f9..4bcd54a0 100644 | |
--- a/themes/avit.zsh-theme | |
+++ b/themes/avit.zsh-theme | |
@@ -5,12 +5,19 @@ typeset +H _current_dir="%{$fg_bold[blue]%}%3~%{$reset_color%} " | |
typeset +H _return_status="%{$fg_bold[red]%}%(?..⍉)%{$reset_color%}" | |
typeset +H _hist_no="%{$fg[grey]%}%h%{$reset_color%}" | |
-PROMPT=' | |
-$(_user_host)${_current_dir} $(git_prompt_info) $(ruby_prompt_info) | |
-%{%(!.${fg[red]}.${fg[white]})%}▶%{$reset_color%} ' | |
+PROMPT='$(_user_host)${_current_dir} $(git_prompt_info) $(git_remote_status) $(ruby_prompt_info) | |
+%{%(!.${fg[red]}.${fg[white]})%}𝝺%{$reset_color%} ' | |
PROMPT2='%{%(!.${fg[red]}.${fg[white]})%}◀%{$reset_color%} ' | |
+ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_DETAILED="true" | |
+ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_PREFIX="%{$reset_color%}%{%G%} " | |
+ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_SUFFIX="" | |
+ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE_COLOR="%{$fg[magenta]%}" | |
+ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE_COLOR="%{$fg[magenta]%}" | |
+ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE=" %{%B↑%b%G%}%{$fg[magenta]%}" | |
+ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE=" %{%B↓%b%G%}%{$fg[magenta]%}" | |
+ | |
RPROMPT='$(vi_mode_prompt_info)%{$(echotc UP 1)%}$(_git_time_since_commit) $(git_prompt_status) ${_return_status}%{$(echotc DO 1)%}' | |
function _user_host() { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment