[bash] fix light/dark background switch

This commit is contained in:
Fernando Schauenburg 2018-09-20 19:08:11 +02:00
parent 7e21f88f9f
commit 78e76c2390

18
bashrc
View file

@ -183,9 +183,21 @@ bashrc_customize_ls() {
fi fi
} }
# Quickly change between light and dark background # Change to light background
light() { export BACKGROUND="light" && do_solarize_shell; } light() {
dark() { export BACKGROUND="dark" && do_solarize_shell; } export BACKGROUND="light"
bashrc_customize_terminal_colors
bashrc_customize_prompt
bashrc_customize_ls
}
# Change to dark background
dark() {
export BACKGROUND="dark"
bashrc_customize_terminal_colors
bashrc_customize_prompt
bashrc_customize_ls
}
# Print the solarized palette (for testing) # Print the solarized palette (for testing)
solarized() { solarized() {