1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-12-25 01:38:13 +00:00

Removed hard-coded colors in my zsh theme

Now I can use the theme in light terminal themes. Before this, it always
showed a black background in the in the prompt, which looks horrible in
light themes.
This commit is contained in:
J. Fernando Sánchez 2016-11-29 12:06:11 +01:00
parent ca7513be8b
commit b88768512a

View File

@ -6,7 +6,7 @@
#
# Authors:
# Isaac Wolkerstorfer <i@agnoster.net>
# Jeff Sandberg <balkian460@gmail.com>
# Jeff Sandberg <paradox460@gmail.com>
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Screenshots:
@ -47,11 +47,11 @@ function prompt_balkian_end_segment {
}
function prompt_balkian_build_prompt {
prompt_balkian_start_segment black default '%(?::%F{red}✘ )%(!:%F{yellow}⚡ :)%(1j:%F{cyan}⚙ :)%F{${hostnamecolor}}%n%F{white}@%F{${hostnamecolor}}%m%f'
prompt_balkian_start_segment black default '$_prompt_balkian_pwd'
prompt_balkian_start_segment default default '%(?::%F{red}✘ )%(!:%F{yellow}⚡ :)%(1j:%F{cyan}⚙ :)%F{${hostnamecolor}}%n%F{white}@%F{${hostnamecolor}}%m%f'
prompt_balkian_start_segment default default '$_prompt_balkian_pwd'
if [[ -n "$git_info" ]]; then
prompt_balkian_start_segment black yellow '${(e)git_info[ref]}${(e)git_info[status]}'
prompt_balkian_start_segment "" yellow '${(e)git_info[ref]}${(e)git_info[status]}'
fi
prompt_balkian_end_segment