ajeetdsouza / zoxide

A smarter cd command. Supports all major shells.
MIT License
20.29k stars 518 forks source link

Directory Color Issues in Interactive Mode #828

Open NoobGajen opened 1 month ago

NoobGajen commented 1 month ago

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 commented 1 month ago
  1. What are the colours supposed to look like?
  2. What's the value of LS_COLORS?
NoobGajen commented 1 month ago

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'