vivid icon indicating copy to clipboard operation
vivid copied to clipboard

Using `gls` on macOS with `$LS_COLORS` set by `vivid` changes color of all subsequent output

Open rdw20170120 opened this issue 6 months ago • 1 comments

I am running Apple macOS Sequoia (15.5). I installed coreutils from Homebrew. I played with gls, but long for fully colorized output. I installed vivid via Homebrew. I configured with export LS_COLORS="$(vivid generate solarized-dark)" during my Bash startup. I execute gls. The output is colorized, but my subsequent prompt and output are now a different color (remaining from the gls output). I execute ls (colored but with no $LSCOLORS defined). My prompt and all subsequent output is back to normal (default) colors.

Could this be an issue in vivid itself (as it changes colors) or in the generated value of $LS_COLORS? I have not yet tried to troubleshoot it that far.

rdw20170120 avatar Jun 19 '25 22:06 rdw20170120

I tested instead with gdircolors (also from coreutils). Colorization behaves normally with it.

rdw20170120 avatar Jun 19 '25 23:06 rdw20170120

Thank you for reporting this. I can't reproduce this (not a macOS user). We have never seen any reports of invalid LS_COLORS values, but it's certainly an option. It does seem more likely to me that something is wrong with the terminal setup? Also, note that LSCOLORS and LS_COLORS is something different.

Closing this for now, but please feel free to reopen if you can identify a problem with the output of vivid.

sharkdp avatar Aug 31 '25 19:08 sharkdp