Just FYI, fish shell does that by default in a more interesting manner: it actually expands the command. So if you type e.g. ll and press space, fish would replace ll with ls -lh.
ll
ls -lh
Nice idea, I found a way to do it on ZSH adding the Globalias plugin.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Just FYI, fish shell does that by default in a more interesting manner: it actually expands the command. So if you type e.g.
ll
and press space, fish would replacell
withls -lh
.Nice idea, I found a way to do it on ZSH adding the Globalias plugin.