diff --git a/bin/solarize b/bin/solarize index 9f71e8e..fc95081 100755 --- a/bin/solarize +++ b/bin/solarize @@ -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