mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-27 05:34:35 +00:00
Improve git prompt coloring
This commit is contained in:
parent
6cfe44eb66
commit
29654d4a7c
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
# af-magic.zsh-theme
|
# Inspired by af-magic.zsh-theme
|
||||||
# Repo: https://github.com/andyfleming/oh-my-zsh
|
# Repo: https://github.com/andyfleming/oh-my-zsh
|
||||||
# Direct Link: https://github.com/andyfleming/oh-my-zsh/blob/master/themes/af-magic.zsh-theme
|
# Direct Link: https://github.com/andyfleming/oh-my-zsh/blob/master/themes/af-magic.zsh-theme
|
||||||
|
|
||||||
|
@ -7,9 +7,11 @@
|
||||||
typeset +H return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
typeset +H return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
||||||
typeset +H GRAY="$FG[237]"
|
typeset +H GRAY="$FG[237]"
|
||||||
typeset +H RED="$FG[196]"
|
typeset +H RED="$FG[196]"
|
||||||
typeset +H YELLOW="$FG[226]"
|
typeset +H ORANGE="$FG[214]"
|
||||||
typeset +H BLUE="$FG[032]"
|
typeset +H BLUE="$FG[032]"
|
||||||
typeset +H PURPLE="$FG[105]"
|
typeset +H PURPLE="$FG[105]"
|
||||||
|
typeset +H GREEN="$FG[078]"
|
||||||
|
typeset +H LBLUE="$FG[075]"
|
||||||
|
|
||||||
# Primary Prompt
|
# Primary Prompt
|
||||||
[ "$EUID" -eq 0 ] && PS1="$RED%n@%m " || PS1="$GRAY%n@%m " # user@machine (red/gray based on root)
|
[ "$EUID" -eq 0 ] && PS1="$RED%n@%m " || PS1="$GRAY%n@%m " # user@machine (red/gray based on root)
|
||||||
|
@ -25,17 +27,17 @@ RPS1="${return_code}"
|
||||||
(( $+functions[virtualenv_prompt_info] )) && RPS1+="$(virtualenv_prompt_info)"
|
(( $+functions[virtualenv_prompt_info] )) && RPS1+="$(virtualenv_prompt_info)"
|
||||||
|
|
||||||
# git settings
|
# git settings
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="$FG[075]($FG[078]"
|
ZSH_THEME_GIT_PROMPT_PREFIX="$LBLUE($ORANGE"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="$my_orange*%{$reset_color%}"
|
ZSH_THEME_GIT_PROMPT_DIRTY="$RED*%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="$FG[075])%{$reset_color%}"
|
ZSH_THEME_GIT_PROMPT_SUFFIX="$LBLUE)%{$reset_color%}"
|
||||||
|
|
||||||
# hg settings
|
# hg settings
|
||||||
ZSH_THEME_HG_PROMPT_PREFIX="$FG[075]($FG[078]"
|
ZSH_THEME_HG_PROMPT_PREFIX="$LBLUE($GREEN"
|
||||||
ZSH_THEME_HG_PROMPT_CLEAN=""
|
ZSH_THEME_HG_PROMPT_CLEAN=""
|
||||||
ZSH_THEME_HG_PROMPT_DIRTY="$my_orange*%{$reset_color%}"
|
ZSH_THEME_HG_PROMPT_DIRTY="$RED*%{$reset_color%}"
|
||||||
ZSH_THEME_HG_PROMPT_SUFFIX="$FG[075])%{$reset_color%}"
|
ZSH_THEME_HG_PROMPT_SUFFIX="$LBLUE)%{$reset_color%}"
|
||||||
|
|
||||||
# virtualenv settings
|
# virtualenv settings
|
||||||
ZSH_THEME_VIRTUALENV_PREFIX=" $FG[075]["
|
ZSH_THEME_VIRTUALENV_PREFIX=" $LBLUE\["
|
||||||
ZSH_THEME_VIRTUALENV_SUFFIX="]%{$reset_color%}"
|
ZSH_THEME_VIRTUALENV_SUFFIX="]%{$reset_color%}"
|
||||||
|
|
Loading…
Reference in a new issue