A shell exclamation mark is not for yelling. Be lazy

6 points by seb


banna

zsh handles tab-expansion for event designators to some degree…

$ zsh --version
zsh 5.9 (arm64-apple-darwin25.0)
$ ls ~/some/path
ls: /some/path: No such file or directory
$ mkdir !:$  #<tab> will expand to ~/some/path in the readline
$ !z #<tab> again will expand to the most recent closest-match, i.e. 'zsh --version'
lake

This is incredible. Thank you, especially for the short summary in the "Yell responsibly" section. I will keep referring to this and maybe eventually get a muscle memory for the different ways event designators can be used.