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!


Share this post on…

  • Mastodon
  • Facebook
  • LinkedIn
  • BlueSky
  • Threads
  • Reddit
  • HackerNews
  • Lobsters
  • WhatsApp
  • Telegram

4 thoughts on “Setting exa's preferences for a better ls”

  1. says:

    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.)

    Reply

What are your reckons?

All comments are moderated and may not be published immediately. Your email address will not be published.

Allowed HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <p> <pre> <br> <img src="" alt="" title="" srcset="">