Last active
December 20, 2020 16:49
-
-
Save vterdunov/7d6d8f15559f877a53f449870d6dfee5 to your computer and use it in GitHub Desktop.
vterdunov.zsh-theme
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
DARK_BLUE="\033[0;36m" | |
br_name () { | |
local name | |
name=$(git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null) | |
if [[ -n $br_name ]]; then | |
echo "->${name}" | |
fi | |
} | |
PROMPT=$'%{$fg_bold[blue]%}┌─[%~]$(git_prompt_info) | |
%{$fg_bold[blue]%}└─[%{$fg_bold[green]%}$%{$fg_bold[blue]%}]%{$reset_color%} ' | |
RPROMPT='%{$fg_bold[grey]%}[%*]%{$reset_color%}' | |
PS2=$' \e[0;34m%}%B>%{\e[0m%} ' | |
ZSH_THEME_GIT_PROMPT_PREFIX="${DARK_BLUE}[" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="$(br_name)]%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" |
Author
vterdunov
commented
Dec 20, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment