solarize: apply appropriate LS_COLORS

This commit is contained in:
Fernando Schauenburg 2021-02-25 19:35:07 +01:00
parent bc307870ff
commit 2a8ca85a3e

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# Solarize the terminal
# Useful terminal control sequences:
@ -128,6 +128,11 @@ main() {
tmux set-environment -g BACKGROUND "$BACKGROUND"
tmux source-file "$XDG_CONFIG_HOME/tmux/tmux-colors.conf"
fi
ls_colors="$HOME/.config/dircolors/solarized-$BACKGROUND"
if type dircolors >/dev/null 2>&1 && [ -f "$ls_colors" ]; then
eval "$(dircolors "$ls_colors")"
fi
}
main