Skip to content
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

LS colors aren't showing correctly #256

Closed
CarlosMed opened this issue Apr 4, 2019 · 2 comments
Closed

LS colors aren't showing correctly #256

CarlosMed opened this issue Apr 4, 2019 · 2 comments

Comments

@CarlosMed
Copy link

CarlosMed commented Apr 4, 2019

So when doing ls + space + tab for completions the colors seem to be that green color making it pretty much unreadable.

Meanwhile doing just a ls + enter the colors become that beige/yellow color. Was wondering if theres a fix? If it might be Oh-My-ZSH or the Geometry theme.

Screen Shot 2019-04-03 at 11 37 12 PM

I am using iTerm2 as my terminal of choice with Atom color preset.

@jedahan
Copy link
Member

jedahan commented May 27, 2019

That is definitely a iterm2 or oh-my-zsh issue. oh-my-zsh ships with a not great version of some zsh autocomplete plugin usually.
Can you reproduce this with a minimal zshrc, something like

# ~/.zshrc-issue-256-carlosmed
source /path/to/geometry-zsh/geometry/geometry.plugin.zsh
fpath+=/path/to/geometry-zsh/geometry/
PATH=/path/to/geometry-zsh/geometry:$PATH

and run with

zsh --no-rcs --no-globalrcs --login -c "~/.zshrc-issue-256-carlosmed"

also congrats on nabbing issue 0x100 :)

@CarlosMed
Copy link
Author

So I actually figured out the reason why. It has to do with setting the permissions set on folders and file. If you give it a chmod 777 <folder> you get the ugly colors. but if you set it to chmod 755 <folder> you'll have the correct coloration.

From my research it seems that the way Mac sets LS colors is not so well which cause the weird colors. I am going to check the above that you posted though and see if it achieves anything but as far as a fix its the above.

@jedahan jedahan closed this as completed Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants