zsh-users
 help / color / mirror / code / Atom feed
From: Steve Dondley <s@dondley.com>
To: Zsh users <zsh-users@zsh.org>
Subject: How do I get rid of _complete_alias error generated by bash code?
Date: Wed, 15 Sep 2021 16:48:00 -0400	[thread overview]
Message-ID: <cb62848e26d7cbbdf9e65df7bde31cc2@dondley.com> (raw)

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
complete -F _complete_alias ta
complete -F _complete_alias tl
complete -F _complete_alias tm
complete -F _complete_alias tasn
complete -F _complete_alias tast
complete -F _complete_alias taa
complete -F _complete_alias tlst
complete -F _complete_alias tli
complete -F _complete_alias tpa
complete -F _complete_alias tlt
complete -F _complete_alias tai


I don't even remember why I had to put them in bash and I'm not sure 
they are needed in zsh. Initially, zsh doesn't complain about them at 
all. But then at some point, and I don't know when, I start getting an 
error when trying to use tab completion:

> $ tasn (anon):4: command not found: _complete_alias
(anon):4: command not found: _complete_alias
(anon):4: command not found: _complete_alias

I tried commenting out all the lines and reloading zsh but it still 
throws the errors. The (anon):4 isn't helpful to me so I don't know 
where the errors might be coming from. I grep'd the code and don't see 
any more instances of "_complete_alias". To get rid of the errors, I 
have to start a new zsh from scratch.

Can someone please help me determine:

1) If I need these lines in zsh
2) If they are needed, how do I keep them from throwing an error
3) How I track down these errors and get rid of them without restarting 
the shell?



             reply	other threads:[~2021-09-15 20:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-15 20:48 Steve Dondley [this message]
2021-09-15 20:54 ` Steve Dondley
2021-09-15 20:55 ` Roman Perepelitsa
2021-09-15 22:37   ` Steve Dondley
2021-09-15 21:20 ` Bart Schaefer
2021-09-15 21:50   ` Bev In TX
2021-09-15 22:29     ` Steve Dondley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cb62848e26d7cbbdf9e65df7bde31cc2@dondley.com \
    --to=s@dondley.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).