Show me your ls

Getting comfortable in the terminal is one of those coming-of-age moments for developers and data scientists. Whenever I open the default terminal on macOS or Linux, I’m shocked at just how bad it is. There are many tools and alternative terminal apps (OhMyZSH, Warp, Windows Terminal to name a few).

With this essay, I thought it’d be fun to focus on something as minuscule as the basic ls command (that’s dir for my windows friends).

Let me just set the lower bar for how meh this can be. Here is what you get from a $3,000 MacBook Pro running the latest macOS:

It works, but it sure doesn’t inspire.

Here’s my ls today

  1. Size, human-readable (KB vs. MB, etc.)
  2. Icons (via NerdFonts.com)
  3. Hidden files shown/omitted driven by developer-focused conventions and the .gitignore file
  4. Color coding based on .gitignore and more

This is simply aliasing the great pls library to ls (alias ls="pls --details size") and using the details flag. The bare pls is good too.

Now show me your ls

Share a screenshot and back story with your ls on one of the social posts about this essay.