From 78e76c23905579f24543be9a6015cf0127979868 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Thu, 20 Sep 2018 19:08:11 +0200 Subject: [PATCH] [bash] fix light/dark background switch --- bashrc | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/bashrc b/bashrc index c2822e5..3e92574 100644 --- a/bashrc +++ b/bashrc @@ -183,9 +183,21 @@ bashrc_customize_ls() { fi } -# Quickly change between light and dark background -light() { export BACKGROUND="light" && do_solarize_shell; } -dark() { export BACKGROUND="dark" && do_solarize_shell; } +# Change to light background +light() { + 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) solarized() {