From 2a8ca85a3e24eb75ddeca01c7bf81b0ed71f643e Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Thu, 25 Feb 2021 19:35:07 +0100 Subject: [PATCH] solarize: apply appropriate LS_COLORS --- bin/solarize | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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