bpaf_cauwugo: How to enable completion for aliases #157
-
This works fine: cauwugo check -p<TAB> But with alias it doesn't: alias c="cauwugo check"
c -p<TAB> I use zsh. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
By default zsh tries to expand the alias before doing the completion, unless told otherwise with A few related links: https://zsh.sourceforge.io/Doc/Release/Options.html#index-COMPLETE_005fALIASES |
Beta Was this translation helpful? Give feedback.
By default zsh tries to expand the alias before doing the completion, unless told otherwise with
completealiases
, so removingsetopt completealiases
from.zshrc
or addingunsetopt completealiases
there should do the trick.A few related links:
https://zsh.sourceforge.io/Doc/Release/Options.html#index-COMPLETE_005fALIASES
https://unix.stackexchange.com/questions/250314/whats-the-intended-use-case-for-complete-aliases-in-zsh
https://unix.stackexchange.com/questions/335145/using-zsh-autocompletion-for-alias