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

Exa does not read EXA_COLORS #1161

Open
ryanlmw99 opened this issue Feb 17, 2023 · 2 comments
Open

Exa does not read EXA_COLORS #1161

ryanlmw99 opened this issue Feb 17, 2023 · 2 comments

Comments

@ryanlmw99
Copy link

If exa does something unexpected, or its output looks wrong, or it displays an error on the screen, or if it outright crashes, then please include the following information in your report:

  • The version of exa being used (exa --version): 0.10.1
  • The command-line arguments you are using: EXA_COLORS="reset" && exa
  • Your operating system and hardware platform: Debian 11 64bit

I have some strange issues with exa, initially running this command “EXA_COLORS="reset" && exa” would work as expected but after the system is rebooted the command has no effect .e.g exa would render colors as usual. Furthermore setting custom colors with EXA_COLORS also won’t work.


@eggbean
Copy link

eggbean commented Feb 17, 2023

How are you trying to set EXA_COLORS? You would normally do that in ~/.bashrc (if using bash).

e.g.

export EXA_COLORS='xa=38;5;135:lc=38;5;124:lm=38;5;196:uu=38;5;178:gu=38;5;178:un=38;5;141:gn=38;5;141:bO=38;5;009'

To remove $EXA_COLORS in the current shell, use EXA_COLORS= not EXA_COLORS=reset

@ryanlmw99
Copy link
Author

Thanks for your response. I just switched back to this setting in .bashrc, exa now works as usual.

export EXA_COLORS="da=38;5;245:di=38;5;14:sn=38;5;28:sb=38;5;28:uu=38;5;40:un=38;5;160:gu=38;5;40:gn=38:5:160:bl=38;5;220:ur=37:uw=
37:ux=37:ue=37:gr=37:gw=37:gx=37:tr=37:tw=37:tx=37:su=37:sf=37:xa=37"

alias ls="exa --group --sort=.name --group-directories-first"
alias ll="exa --long --header --links --blocks --modified --created --group --all --sort=.name --group-directories-first"
alias tree="exa --tree"

Previously this setting did not affect exa .e.g exa seems not read EXA_COLORS so I had to use EXA_COLORS=“..” && exa ..

I’ll report again if the issue comes up. Thanks.

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