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

Directory Color Issues in Interactive Mode #828

Open
NoobGajen opened this issue May 25, 2024 · 4 comments
Open

Directory Color Issues in Interactive Mode #828

NoobGajen opened this issue May 25, 2024 · 4 comments

Comments

@NoobGajen
Copy link

I am facing some color issues in interactive mode in the zoxide tool, possibly due to an incorrect implementation of LS_COLORS. I'm using zsh 5.9 (x86_64-pc-linux-gnu) on Arch Linux, and I tested the zoxide tool on some Debian-based distros as well and the issue was same.

I am a big fan of the zoxide tool and have a huge respect for your work. Could you please help resolve this color issue?
AND Is there any way to manually set LS_COLORS by adding an extra flag or changing some lines in the configuration files?

Thank you!

image

@ajeetdsouza
Copy link
Owner

  1. What are the colours supposed to look like?
  2. What's the value of LS_COLORS?

@NoobGajen
Copy link
Author

I am not using any sort of LS_COLORS with my shell.
Do I need to use it?

BTW, I am using pure Zsh in my Arch Linux. I remember I was getting the same issue when I was customizing my Zsh shell because of LS_COLORS customization. I was not able to fix that issue, so I left out the LS_COLORS customization.

The customization was something like this: when I added this line to my .zshrc file, I started getting the same color issue with my directories as I was getting in the zoxide tool:

zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} 'di=1;34'

@JayBeeFOSS
Copy link

JayBeeFOSS commented Jul 17, 2024

Are you using the package lsd as a replacement for plain ls, by any chance? I found this bug report because I was having the exact same issue as you, with pretty much the same unreadable colour combination as you.

If you have made an alias so that the command 'ls' actually executes lsd, try /bin/ls -lh --color and check if the colours are different (and maybe even more readable) as they were for me. If so, than you are experiencing the exact same issue as I did. So I suspect it's not a bug after all.

I solved it by configuring the LS_COLORS variable (see the Arch Wiki; personally I'm using the package vivid now). Now zoxide (and fzf) much more legible.

@ozinka
Copy link

ozinka commented Aug 11, 2024

I fixed it by adding line to the config.fish:
set LS_COLORS "$LS_COLORS:ow=34;01"
OW states for STICKY_OTHER_WRITABLE
In my case all folders from Windows have this sticky bit.
Of course, I'm wowking in WSL

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

4 participants