mirror of
https://github.com/balkian/dotfiles.git
synced 2024-11-23 12:42:29 +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:
parent
ca7513be8b
commit
b88768512a
@ -6,7 +6,7 @@
|
|||||||
#
|
#
|
||||||
# Authors:
|
# Authors:
|
||||||
# Isaac Wolkerstorfer <i@agnoster.net>
|
# Isaac Wolkerstorfer <i@agnoster.net>
|
||||||
# Jeff Sandberg <balkian460@gmail.com>
|
# Jeff Sandberg <paradox460@gmail.com>
|
||||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||||
#
|
#
|
||||||
# Screenshots:
|
# Screenshots:
|
||||||
@ -47,11 +47,11 @@ function prompt_balkian_end_segment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function prompt_balkian_build_prompt {
|
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 default 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 '$_prompt_balkian_pwd'
|
||||||
|
|
||||||
if [[ -n "$git_info" ]]; then
|
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
|
fi
|
||||||
|
|
||||||
prompt_balkian_end_segment
|
prompt_balkian_end_segment
|
||||||
|
Loading…
Reference in New Issue
Block a user