Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How do I get rid of _complete_alias error generated by bash code?



On Sep 15, 2021, at 4:33 PM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:

On Wed, Sep 15, 2021 at 1:48 PM Steve Dondley <s@xxxxxxxxxxx> wrote:

I'm migrating my stuff from bash to zsh. I'm a stymied by an error that
crops up from time to time and I'm not sure how to fix.

In bash, I had these lines:

# completion commands
complete -F _complete_alias t

(and so on)

That means that at some other point in your bash startup, a function
named _complete_alias was defined, and you told bash to run that
function to complete the "t" (etc.) commands.

Removing these lines is probably the right thing, but otherwise you
need to port the _complete_alias definition into your zsh startup as
well.  You must already be loading bashcompinit if there is no
complaint about the "complete" command not being found.
Perhaps the OP is using:
https://github.com/cykerway/complete-alias


Messages sorted by: Reverse Date, Date, Thread, Author