So I have a file full of aliases and wanted to add this to replace ls. I use oh-my-zsh. When it was added, the command ran but no color showed ever.
I cant replicate the issue. I added "alias ls='exa'" in my dot-alias file but color still works fine. I run bash.
Can it be that your aliasfile or script calling it removes color?
Do you have any other alias that does work with color?
I ran into the same problem, however in my case I had to provide the full path to exa in the alias for coloring to work correctly.
alias ls='/usr/local/bin/exa'
Gotta be honest, I have no idea what would cause something like this to happen.
@MohamedElm1678, is this still happening? What happens when you run which exa?
Most helpful comment
I cant replicate the issue. I added "alias ls='exa'" in my dot-alias file but color still works fine. I run bash.
Can it be that your aliasfile or script calling it removes color?
Do you have any other alias that does work with color?