News for hackers. Stuff that matters.
Re:ZSH Aliases by fratajcz on Tuesday May 26, 2020 @08:17AM (#23310167)
fish abbreviations kinda do this, for example if you define your alias above as an abbrev and you type hello<space>, it replaces hello by ~/Documents in your command line. You still have to press backspace to remove the space you just inserted, but it's better than nothing.

Also, apparently you can add this to zsh with a plugin: https://github.com/momo-lab/zsh-abbrev-alias

Re:ZSH Aliases by lawry on Tuesday May 26, 2020 @10:47AM (#23311821)
fish-shell abbreviations are really cool, I do miss that in zsh, I'll probably give that plugin a go. It also makes it for other people easier to see what's going on when looking at the previous commands.