I use ZSH via Oh-my-zsh, and one neat feature I see is that the shell expands my commands when they are in backticks.
`pwd` + tab, replaces
`pwd` with my current path:
I am wondering if there's a relatively easy way to do the same for some commands without having to use the backticks. I'd like to apply that to some aliases (or functions).
To be clear, I am not talking about expanding arguments to a command, but the command itself.
This is a truly amazing feature, but is not exactly what I was looking for. Unless I did something wrong, this expands my alias to what the alias was defined to, but not to what the result is. For example here:
I would like to see the result of that command instead of the full command.