Closed zk-phi closed 5 years ago
This is good idea! But I'm thinking of a different implementation, so please wait for the merge.
I want to support "-g -e" similar to -f. And I want to deprecate -f. By doing so, functionality consistency is maintained.
An example that is not good:
$ abbrev-alias -g -e OB='origin $(git symbolic-ref --short HEAD 2>/dev/null)'
$ git pull OB[SPC]
-> git pull origin feature/eager-subshell-expansion
It responded by another method. Look at # 6. So this PR does not merge.
This PR adds a new option
-e
to allow zsh-abbrev-alias to execute subshells eagerly on expansion, like-f
.Example of the current behavior:
and the proposed behavior: