Skip to content

bpaf_cauwugo: How to enable completion for aliases #157

Answered by pacak
Stock84-dev asked this question in Q&A
Discussion options

You must be logged in to vote

By default zsh tries to expand the alias before doing the completion, unless told otherwise with completealiases, so removing setopt completealiases from .zshrc or adding unsetopt 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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Stock84-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants