-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Directory color is too dark on Mac (allow users to define LS_COLORS) #1539
Comments
one may also specify custom i like to use solarized colors. so, in my ~/.zlogin, i add a line after my pathing housework settings (e.g. see zprofile settings, which i put in ~/.zlogin), similar to one of the following:
where ~/.dircolors contains a choice of color spec sourcing these environment settings for non-login/interactive shells can be done from ~/.zshenv. choosing this route means one has to remember to update the example loading provided to look for and load ~/.zlogin instead of ~/.zprofile |
I've got an initial PR out which should allow users to set dircolors manually if they really want to. I'm not sure if I'm happy with the code, but it should work. |
@belak that #1546 PR is an excellent start, for sures. i updated my setup to use the standard ~/.dir_colors named file instead of the ~/.dircolors file i was using. this is my current colors config:
do you think that compensation will have to be made for gnu coreutils built on macos via homebrew and/or macports? i.e. using |
We traditionally haven't included support for gnu coreutils on osx, but it would be nice to see changes which add it. |
Hi, I agree with @danilcha and recently started using this on catalina. |
If you set |
thanks @belak for the tips ... i decided to go with replacing iTerm's blue color instead :) |
Adjusting the |
Prezto is hardwired to use dark blue for directory color both for
ls
and for completion on Mac, which is barely visible on black terminal.I can override
LSCOLORS
(forls
) by executing this after I load Prezto:It makes directory color light blue, and in general I like Linux colors better, e.g. green executables.
Unfortunately, I cannot do the same for
LS_COLORS
(for completion): redefining them before or after I load Prezto has no effect, probably because they are already copied tozstyle ':completion:*' list-colors
.You probably will not change your default colors to Linux, but maybe you could use the existing value of
LS_COLORS
if it was defined and not override it?Update:
Found a way to override them:
The text was updated successfully, but these errors were encountered: