A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/orgs/lsd-rs/discussions/958 below:

Customizing colors in Windows · lsd-rs · Discussion #958 · GitHub

Skip to content Navigation Menu Search code, repositories, users, issues, pull requests...

Saved searches Use saved searches to filter your results more quickly

Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert Customizing colors in Windows #958

Nov 19, 2023 · 2 comments · 6 replies

-

Hello!

I have already seen this discussion, and wish to follow up on it. I am currently running lsd on Windows, and I saw that colors.yaml is not implemented yet. Until that feature is implemented, what method are Windows users supposed to use to customize the directory colors?

Thanks!

Beta Was this translation helpful? Give feedback.

You must be logged in to vote

A temporary solution is as follows (thank you @zwpaper for your help!)

  1. setx LS_COLORS "[value]" (example setx LS_COLORS "di=35")
  2. RefreshEnv
  3. Done!

To find what values can be put into LS_COLORS, refer to this website.

NOTE: RefreshEnv is a command that comes in with Chocolatey. The reason the changes do not take effect immediately is because apparently Windows loads a temp copy of the system variables and uses that. The script that chocolatey uses (found here) only takes effect for the command line session ONLY.

To make the changes permanent, restart your machine after you have made all the necessary changes. The above commands are only to facilitate making sure that you like your configu…

-

Full disclosure, I've been trying to look through the code and the documentation to find an answer, and could not find it haha! I don't believe $LS_COLORS is an environment variable that exists on Windows, and all the instructions seems to be geared towards Linux, so I am a bit lost.

Beta Was this translation helpful? Give feedback.

You must be logged in to vote

6 replies

-

Hi @zwpaper ! Thank you for your response! I've given it a shot, however, nothing really seems to work. I'm not too familiar with stv env's in Windows, so I tried to figure it out (hence I might've done it wrong). I've attached a screenshot below, if you have any further advice that would be much appriciated!

Cheers!

Beta Was this translation helpful? Give feedback.

-

Unfortunately no luck there either.

(And I just wanted to post confirmation that I am using the correct settings in config.yaml)

Beta Was this translation helpful? Give feedback.

-

Hi! Followup:
It worked! I'm not sure what I did, and I think I might've found a bug?

It changed it to the appropriate setting! But it seems like it only occurs on reboots, because after I saw this I decided to try another setting and it reverted to default settings.

Beta Was this translation helpful? Give feedback.

{{actor}} deleted this content .

-

I decided to test this, and this is what I've found:

If you know any way to force lsd to use the new LS_COLORS value (either by reloading the program somehow maybe? or some other wizardary), that'd be greatly appriciated!

EDIT: I have found the answer, and I am detailing it in a seperate comment.

Beta Was this translation helpful? Give feedback.

{{actor}} deleted this content .

-

A temporary solution is as follows (thank you @zwpaper for your help!)

  1. setx LS_COLORS "[value]" (example setx LS_COLORS "di=35")
  2. RefreshEnv
  3. Done!

To find what values can be put into LS_COLORS, refer to this website.

NOTE: RefreshEnv is a command that comes in with Chocolatey. The reason the changes do not take effect immediately is because apparently Windows loads a temp copy of the system variables and uses that. The script that chocolatey uses (found here) only takes effect for the command line session ONLY.

To make the changes permanent, restart your machine after you have made all the necessary changes. The above commands are only to facilitate making sure that you like your configuration before restarting.

Beta Was this translation helpful? Give feedback.

You must be logged in to vote

0 replies

Heading

Bold

Italic

Quote

Code

Link

Numbered list

Unordered list

Task list

Attach files

Mention

Reference

Menu reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4