Remix.run Logo
yasser_kaddoura 21 hours ago

I have these aliases for various purposes:

# Different options to search for files

# da=36 cyan timestamps

alias ls="EZA_COLORS='da=36' eza --time-style=relative --color-scale=age"

alias lsa="ls --almost-all" # ignore . ..

alias l="ls --long --classify=always" # show file indicators

alias la="l --almost-all"

# Tree view

alias ltreea="ls --tree"

alias ltree="ltreea --level=2"

# Sort by time or size

alias lt="ls --long --sort=time"

alias lta="lt --almost-all"

# lsd is faster than eza

alias lss="lsd --long --total-size --sort=size --reverse"

alias lssa="lss --almost-all"

lla seems to go beyond what ls should do for some reason. Why show git and code complexity info? Just use tools dedicated for these things, otherwise, it will be an unmaintainable mess. If you can solve a problem easily with external tools, then there's no reason to add a feature for it.

tejohnso 3 hours ago | parent | next [-]

That's a great list. I have a similar list and the aliases grow out of frequently used arguments. For example, I found myself often doing an ls -Altch and so lsth was born. I find that aliases that or born of frequently used arguments are easily remembered. Over time that one grew to include a pipe to head because most of the time I just want to see the top 20 or so most recently modified files in the directory.

2 hours ago | parent | prev [-]
[deleted]