Re:Eza: A modern, maintained replacement for ls
by tutipop on Monday July 22, 2024 @01:07PM
(#41036728)
I do the same in bash, but it's a bit wordier:
Goes well with
[ Parent
| on HN ]
Re:Eza: A modern, maintained replacement for ls
by mbivert on Monday July 22, 2024 @02:07PM
(#41037542)
Not strictly equivalent, but shorter (and should work with multiple shells):
$ cd() { builtin cd $* && ls; }
$ cd /
bin boot cdrom dev etc home lib lib64 [...]
Re:Eza: A modern, maintained replacement for ls
by oxygen_crisis on Monday July 22, 2024 @04:14PM
(#41039307)
$* will break on directory names containing spaces and other bash "word" delimiters, use "$@":
cd() { builtin cd "$@" && ls; }