diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc index 188fd2d..be7db4f 100644 --- a/dotfiles/.bashrc +++ b/dotfiles/.bashrc @@ -25,17 +25,6 @@ bashrc_customize_environment() { export HISTFILE=~/.bash_eternal_history } -bashrc_update_colors() { - export BACKGROUND="$1" - bashrc_customize_terminal_colors - bashrc_customize_prompt - bashrc_customize_ls - if [ -n "$TMUX" ] && [ -f "$HOME/.tmux.conf" ]; then - tmux set-environment -g BACKGROUND "$BACKGROUND" - tmux source-file "$HOME/.tmux.conf" - fi -} - bashrc_customize_shell_options() { for option in cdspell checkwinsize globstar histappend nocaseglob do @@ -92,6 +81,17 @@ EOS export MANPATH } +bashrc_update_colors() { + export BACKGROUND="$1" + if [ -n "$TMUX" ] && [ -f "$HOME/.tmux.conf" ]; then + tmux set-environment -g BACKGROUND "$BACKGROUND" + tmux source-file "$HOME/.tmux.conf" + fi + bashrc_customize_terminal_colors + bashrc_customize_prompt + bashrc_customize_ls +} + bashrc_customize_aliases() { alias light='bashrc_update_colors "light"' alias dark='bashrc_update_colors "dark"'