Remove highlights on the directories when running "ls -ltr" #9012

Closed
opened 2026-01-31 01:43:44 +00:00 by claunia · 2 comments
Owner

Originally created by @vow7779 on GitHub (Jun 13, 2020).

Environment

Windows Terminal Version: 1.0.1401.0

Steps to reproduce

Once successfully installed wsl, navigate to my mount (c or d) and type "ls -ltr". I have a gist of my settings.json file here in case you want to take a look at it:

https://gist.github.com/vow7779/488f4a0c25a28ae0cd7e55d633bee18d

Expected behavior

Would like to see highlights removed and have plain text or have a way to remove it from user end.

Actual behavior

All the folders under c,d drives that have 755 permissions has a highlight to it. In my case, yellow and it makes the text hard to read. Please see screenshot attached. I have seen others having it in green.

zshsnip

Thanks!

Originally created by @vow7779 on GitHub (Jun 13, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows Terminal Version: 1.0.1401.0 ``` # Steps to reproduce Once successfully installed wsl, navigate to my mount (c or d) and type "ls -ltr". I have a gist of my settings.json file here in case you want to take a look at it: https://gist.github.com/vow7779/488f4a0c25a28ae0cd7e55d633bee18d # Expected behavior Would like to see highlights removed and have plain text or have a way to remove it from user end. # Actual behavior All the folders under c,d drives that have 755 permissions has a highlight to it. In my case, yellow and it makes the text hard to read. Please see screenshot attached. I have seen others having it in green. ![zshsnip](https://user-images.githubusercontent.com/66241362/84580480-0aeb3180-adf5-11ea-982e-82656c287008.png) Thanks!
claunia added the Resolution-ExternalNeeds-Tag-Fix labels 2026-01-31 01:43:45 +00:00
Author
Owner

@DHowett commented on GitHub (Jun 14, 2020):

These colors are being produced by ls. By default, ls will color directories with mode 777 using attributes 34;42. You can confirm this by checking the contents of the environment variable LS_COLORS for the ow= entry.

This ow entry is generated from the OTHER_WRITABLE dircolors entry.

To suppress colors on ls, you should clear the LS_COLORS environment variable, run ls --color=never, or simply reconfigure dircolors.

For more information, see man dircolors.

@DHowett commented on GitHub (Jun 14, 2020): These colors are being produced by _ls_. By default, _ls_ will color directories with mode `777` using attributes `34;42`. You can confirm this by checking the contents of the environment variable `LS_COLORS` for the `ow=` entry. This `ow` entry is generated from the `OTHER_WRITABLE` dircolors entry. To suppress colors on _ls_, you should clear the `LS_COLORS` environment variable, run `ls --color=never`, *or* simply reconfigure dircolors. For more information, see `man dircolors`.
Author
Owner

@DHowett commented on GitHub (Jun 14, 2020):

(In short: Terminal is not detecting "directories" and coloring them. It is being asked to display colors 34;42 and complying to the best of its ability.)

@DHowett commented on GitHub (Jun 14, 2020): (In short: Terminal is not detecting "directories" and coloring them. It is being asked to display colors `34;42` and complying to the best of its ability.)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9012