[bash] fix light/dark background switch
This commit is contained in:
parent
7e21f88f9f
commit
78e76c2390
1 changed files with 15 additions and 3 deletions
18
bashrc
18
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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue