News for hackers. Stuff that matters.
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:

  _chpwd_hook() {
    if [[ "$PWD" != "$PREVPWD" ]]; then
      ls
      PREVPWD="$PWD"
    fi
  }

  PROMPT_COMMAND=(_chpwd_hook)
Goes well with

  shopt -s autocd
  alias r='cd -'
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; }