Skip to content

enforce ANSI/light/dark theme for limited color support#287

Open
Nikhils-179 wants to merge 1 commit into
muesli:masterfrom
Nikhils-179:fix/theme-ignored-with-CLICOLOR_FORCE=1#262
Open

enforce ANSI/light/dark theme for limited color support#287
Nikhils-179 wants to merge 1 commit into
muesli:masterfrom
Nikhils-179:fix/theme-ignored-with-CLICOLOR_FORCE=1#262

Conversation

@Nikhils-179

Copy link
Copy Markdown

What does this PR do ?

  This PR enforces  enforce ANSI/light/dark theme for limited color support

Fixes #262

Screenshot 2024-10-06 at 9 17 37 PM

imabug added a commit to imabug/duf that referenced this pull request Mar 29, 2025
@muesli

muesli commented Aug 27, 2025

Copy link
Copy Markdown
Owner

Help me understand. What are you trying to achieve with this change?

@muesli

muesli commented Aug 27, 2025

Copy link
Copy Markdown
Owner

To fix #262 we need to check if the theme was manually set by the user and then ignore the ANSI fallback.

This change as it is makes the entire if-clause pointless, as the correct theme would have already been loaded above. It just loads the same theme twice now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--theme ignored with CLICOLOR_FORCE=1

2 participants