From 3b78309b89bd82155c46e82198eb2a9654da2703 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sat, 26 Dec 2020 21:25:35 +0300 Subject: [PATCH] parse LF_COLORS variable for lf specific colors --- colors.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/colors.go b/colors.go index c20a619..0efd156 100644 --- a/colors.go +++ b/colors.go @@ -68,6 +68,10 @@ func parseStyles() styleMap { sm.parseGNU(env) } + if env := os.Getenv("LF_COLORS"); env != "" { + sm.parseGNU(env) + } + return sm }