lsd: Missing colors after installing nerd-fonts
I recently moved to a new machine, and as a result, icons were missing in the output of lsd
(instead I saw a [?] icon).
Today I followed the instructions in this comment to install and configure nerd-fonts for iTerm2, which worked. However, now the color output of lsd
is gone.
I tried uninstalling and reinstalling lsd (with brew uninstall lsd
and brew install lsd
), but that did not result in a change.
Current output:
iTerm2 settings:
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 34 (18 by maintainers)
For those who don’t want to wait, here is an approx. of the old theme:
LS_COLORS='di=38;5;33:ln=38;5;44:so=38;5;44:pi=38;5;44:bd=38;5;44:or=38;5;124:cd=38;5;172:ex=38;5;40:fi=38;5;184:no=38;5;245'
Preview:
This is based on
src/color.rs/get_light_theme_colour_map()
, which was responsible for the default color scheme back in 0.16.0. I don’t think it’s actually used anywhere now.There are still some differences between 0.18.0 with this LS_COLORS configuration and 0.16.0, which cannot be configured using LS_COLORS only, but were hardcoded in source code. For example, the permission settings are colored differently.
0.16.0:
0.18.0 with this LS_COLORS configuration:
Couple of thoughts:
LS_COLORS
does not cover them allLS_COLORS
could default to 0.16.0’s style for users convenience--old_color_scheme
flag that would switch color scheme to already available mapping generated inget_light_theme_colour_map()
would be a nice touchHappens here too, no
LS_COLORS
set. It seems to me thatlsd
uses a different shade of blue for folders (in my case, see screenshots) than the normal ls, and when switching to the solarized theme, that color gets clobbered.So, I’d say the issue is a combination between lsd and the solarized theme.
Regular iTerm theme (dark background):
Solarized theme:
thanks @meain ! I thought that
colors.theme
changed everything! my bad.Thanks again!
You cannot control the colors of files and folders with the theme, only the other blocks.
@foxale That would be a good idea. Will add a way to reproduce the old colors using
LSCOLORS
in the readme.yes, that is exactly how I set it. And no unsetting did not work. EDIT: Never mind. I was accidently setting that value to
$ZSH
instead of$LS_COLORS
. No, this did not resolve the issueNot sure how you got “not found” error. How are you setting
LS_COLORS
? Just in case, this is how you would do it.export LS_COLORS='rs=0.....9'
Also, did
unset LS_COLORS && lsd
work?