mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-27 16:20:07 +00:00
Fix agnoster theming to work with the solarized theme changes
This commit is contained in:
parent
3c307e8479
commit
51d999651d
1 changed files with 12 additions and 13 deletions
|
@ -29,13 +29,22 @@
|
||||||
# jobs are running in this shell will all be displayed automatically when
|
# jobs are running in this shell will all be displayed automatically when
|
||||||
# appropriate.
|
# appropriate.
|
||||||
|
|
||||||
|
### Segment drawing
|
||||||
|
# A few utility functions to make it easy and re-usable to draw segmented prompts
|
||||||
|
|
||||||
|
CURRENT_BG='NONE'
|
||||||
|
|
||||||
|
case ${SOLARIZED_THEME:-dark} in
|
||||||
|
light) CURRENT_FG='white';;
|
||||||
|
*) CURRENT_FG='black';;
|
||||||
|
esac
|
||||||
|
|
||||||
### Theme Configuration Initialization
|
### Theme Configuration Initialization
|
||||||
#
|
#
|
||||||
# Override these settings in your ~/.zshrc
|
# Override these settings in your ~/.zshrc
|
||||||
|
|
||||||
# Current working directory
|
# Current working directory
|
||||||
: ${AGNOSTER_DIR_FG:=black}
|
: ${AGNOSTER_DIR_FG:=${CURRENT_FG}}
|
||||||
: ${AGNOSTER_DIR_BG:=blue}
|
: ${AGNOSTER_DIR_BG:=blue}
|
||||||
|
|
||||||
# user@host
|
# user@host
|
||||||
|
@ -43,7 +52,7 @@
|
||||||
: ${AGNOSTER_CONTEXT_BG:=black}
|
: ${AGNOSTER_CONTEXT_BG:=black}
|
||||||
|
|
||||||
# Git related
|
# Git related
|
||||||
: ${AGNOSTER_GIT_CLEAN_FG:=black}
|
: ${AGNOSTER_GIT_CLEAN_FG:=${CURRENT_FG}}
|
||||||
: ${AGNOSTER_GIT_CLEAN_BG:=green}
|
: ${AGNOSTER_GIT_CLEAN_BG:=green}
|
||||||
: ${AGNOSTER_GIT_DIRTY_FG:=black}
|
: ${AGNOSTER_GIT_DIRTY_FG:=black}
|
||||||
: ${AGNOSTER_GIT_DIRTY_BG:=yellow}
|
: ${AGNOSTER_GIT_DIRTY_BG:=yellow}
|
||||||
|
@ -53,7 +62,7 @@
|
||||||
: ${AGNOSTER_HG_NEWFILE_BG:=red}
|
: ${AGNOSTER_HG_NEWFILE_BG:=red}
|
||||||
: ${AGNOSTER_HG_CHANGED_FG:=black}
|
: ${AGNOSTER_HG_CHANGED_FG:=black}
|
||||||
: ${AGNOSTER_HG_CHANGED_BG:=yellow}
|
: ${AGNOSTER_HG_CHANGED_BG:=yellow}
|
||||||
: ${AGNOSTER_HG_CLEAN_FG:=black}
|
: ${AGNOSTER_HG_CLEAN_FG:=${CURRENT_FG}}
|
||||||
: ${AGNOSTER_HG_CLEAN_BG:=green}
|
: ${AGNOSTER_HG_CLEAN_BG:=green}
|
||||||
|
|
||||||
# VirtualEnv colors
|
# VirtualEnv colors
|
||||||
|
@ -73,16 +82,6 @@
|
||||||
: ${AGNOSTER_GIT_INLINE:=false}
|
: ${AGNOSTER_GIT_INLINE:=false}
|
||||||
|
|
||||||
|
|
||||||
### Segment drawing
|
|
||||||
# A few utility functions to make it easy and re-usable to draw segmented prompts
|
|
||||||
|
|
||||||
CURRENT_BG='NONE'
|
|
||||||
|
|
||||||
case ${SOLARIZED_THEME:-dark} in
|
|
||||||
light) CURRENT_FG='white';;
|
|
||||||
*) CURRENT_FG='black';;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Special Powerline characters
|
# Special Powerline characters
|
||||||
|
|
||||||
() {
|
() {
|
||||||
|
|
Loading…
Reference in a new issue