Closed wxactly closed 8 years ago
Whoops - I just bothered to read the documentation and found ZSH_PLUGINS_ALIAS_TIPS_EXPAND
. Works perfectly! Keep up the great work :)
@wxactly Thanks for the kind words. As you figured out, the solution to this specific problem is using ZSH_PLUGINS_ALIAS_TIPS_EXPAND
. We introduced it as a flag as it was considered experimental. But by now I think it has matured enough and is the expected behaviour therefore I will make it the default with the option to fallback.
Also make sure do check by again tomorrow, after I merged https://github.com/djui/alias-tips/pull/16 which will allow multiple replacement runs and do allow better use cases with git aliases
:
$ which g
g: aliased to git
$ git-alias
st = status -sb
$ git status -sb
Alias tip: g st
Hi - thanks for the awesome plugin! I have an enhancement suggestion for you.
I use the oh-my-zsh git plugin, and I've already trained myself to always use
g
instead ofgit
- which unfortunately means that alias-tips doesn't work for any git command that I type. (I assume because it doesn't expandg
->git
before finding an alias matching the command.)Here's an example:
The relevant aliases from the git plugin:
Sounds tricky, but it would be really great if alias-tips expanded aliases inside commands.