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

bug: theme.yml doesn't work on macOS #1224

Open
virtual-voyager opened this issue Nov 7, 2024 · 5 comments
Open

bug: theme.yml doesn't work on macOS #1224

virtual-voyager opened this issue Nov 7, 2024 · 5 comments
Labels
errors Something isn't working

Comments

@virtual-voyager
Copy link

Version: v0.20.7

I have a theme.yml in ~/.config/eza/theme.yml. The theming works on my linux machine - but not on macOS. I have set $XDG_CONFIG_HOME to $HOME/.config in my .zshenv.

I tried using iTerm2 and kitty and it doesn't work on either when using macOS. I also tried setting $EZA_CONFIG_DIR to ~/.config/eza which also didn`t resolve the issue.

@virtual-voyager virtual-voyager added the errors Something isn't working label Nov 7, 2024
@kristof-mattei
Copy link

For some reason I have not identified, I am running 0.20.3 and I have the same issue that ~/.config/eza/theme.yml is not being parsed on macOS. I do not have $XDG_CONFIG_HOME set.

@kristof-mattei
Copy link

Okay, if you set $EZA_CONFIG_DIR to /Users/<username>/.config/eza it works. PathBuf::from("~/...") does not resolve the ~, that is a shell function.

Now, as to why it doesn't even work when you just put it in ~/.config/eza/theme.yml is because on macOS dirs.config_dir() returns $HOME/Library/Application Support

Location:

let path = dirs::config_dir().unwrap_or_default();

@kristof-mattei
Copy link

What's worse is that even if you were to put your config in ~/Library/Application Support/eza/theme.yml it still doesn't work as if the theme comes from there it merely reads the default theme:

Some(ThemeConfig::default())

@brandon-1999
Copy link

I have also experienced this issue

@brandon-1999
Copy link

Setting CONFIG_DIR to /Users/<username>/.config/eza Also worked for me. the comments are very vague and I thought you needed to set it to ...eza/theme.yml. it also doesn't take control of the directory or filename colours on Iterm for me. @kristof-mattei Did you have the same problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
errors Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants