Setting exa's preferences for a better ls
A few years ago, I wrote about my perfect ls
command. I always want to see the most recent file at the bottom of the screen, with a human readable filesize, and nothing else.
I've started using the exa
tool to make that happen. Sadly, there's no configuration file to change its default behaviour. So, I add this to my ~/.profile
file:
# Better LS with exa
alias lh='exa -l -s modified --no-permissions --icons --no-user'
When I run lh
, I get:
5.6k 1 Apr 15:01 📝 something.txt
- 4 Apr 20:24 📂 Directory Name
4.9k 8 Apr 21:35 🖼 image.png
And, yes, exa
does show little emoji so I know what sort of filetype it is. Cute!
@Edent
exa
is a fantastic tool! I use it to replace bothls
andtree
.I have the following aliases in my profile:
alias ls='exa --group-directories-first --icons'alias ll='exa --group-directories-first --icons -lha'alias tree='exa --group-directories-first --icons -lha --tree'
@Edent Thanks for this, I just added this to my aliases! Very nice tool.
I wonder where they got the name for the program. The only thing it reminds me of is the name of a character from Ra by qntm. (Which is good sci-fi, but leaves certain... associations with that name.)
@Edent I use these parameters as well!
More comments on Mastodon.