I'm trying to add zsh completions for some aliases which are prefixed by a command and some args. More specifically, I have some commands which are aliased to an envchain ENV_NAME
prefix.
For example:
alias brew='envchain homebrew-credentials brew'
What I'm trying to achieve is having completions for brew
command.
What I've been able to do so far is set compdef _precommand envchain
, but it doesn't work because envchain
takes an argument before the actual command.