eza icon indicating copy to clipboard operation
eza copied to clipboard

feat: Option to output `~` instead of home folder path in symlink destination

Open injust opened this issue 5 months ago • 1 comments

I'd like an option for symlink destinations to show ~ instead of the path to the home folder. I think this makes the output easier to read.

With many absolute symlinks that all point inside the home folder, eza --long output becomes very repetitive. When scanning the output, I notice that I basically ignore the first part of the symlink path.

injust avatar Aug 12 '25 10:08 injust

In the meantime, I'm using this sed -E expression. It works with/without --long and tolerates --classify, --color, --hyperlink, and --icons.

s|(->.+)$HOME/|\1~/|

injust avatar Aug 12 '25 11:08 injust