From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24100 invoked from network); 15 Sep 2021 22:29:55 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 15 Sep 2021 22:29:55 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1631744995; b=dl3alryAlYyq+PKFdnnH5sUYADLqsPQ+9ZTpZ4vL25yrTVIJ/gfWcAfyc9OvoFY1NZXyhjyB9x acJcoUmcM9uk3hOc3iVdNtWBP2tZsokdvng3SdoFGBCpreevAhd9/6dKiDqyLap68FB+5unrfS 73Twa63ncWsj5KZMLGUNK+AKNC7VMDuya0j8NjAo7hgKunP130Ku+74p/pJmzR+RiOujGh7Ygn uoHvhsueBwjvKXYjhfgaXhadBujZ/5Or9IUfpdYHQewTGTXl6HDMLMtD+I+gDw3yGNaGjNupT+ 8jYPb7OKVy4mKoX1aaC43TH2QqhQVinvHIP+XDg4u5IYjw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (email.dondley.com) smtp.remote-ip=34.203.132.18; dkim=pass header.d=dondley.com header.s=default header.a=rsa-sha256; dmarc=pass header.from=dondley.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1631744995; bh=UpTaWxd4njUmRbHNvoSbNHewQ/BhAHic9hIfsUeEB3w=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Message-ID:References:In-Reply-To:Subject:To: From:Date:MIME-Version:DKIM-Signature:DKIM-Signature; b=poC5+hWHtiGPx1+PbUUU4cQidV9lqGksBWC8jAM4TvGDsgycChQTDjaSa2FnVuS7zxEoxqpFTd s3dHBxWbbp+hEgicGveDS8xvebmOdJrKIbO1ZjsiwBatKq4oOIpjLYlXCtmuIsm3BUfmjXhmvz uS/6RmcWnbmfASYq6sgCc4PTQWIjPcnlCDTnZnBnMwj0PnSeZYLNaGMyNr9Tbv9uClfCcCdRYh zzEyiIHosaELgpJY0kDj4q8doOkKE6g5NG4ZdOJsY8VkOzPVd4f6Cw+ohUfBeE6oL5zwjhfSiH 8fBzW0+YxvlbRBR66/THTr84MMdF4djhN4A2GwFM1kmkdQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Message-ID:References: In-Reply-To:Subject:To:From:Date:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=nDSILogsSCjXWrnWkM8nJ31IA2xn8LJXo2whIZEveZ4=; b=jSLyXQCx/NVfPkPRBVb3eYq4od Qo6C4M3NUoQoiPpXbFoh1JZ9wUGZth+vUaoSpVWmLwf7us5/luhhSqsr0SpLPPFQmFdBZUbGH+Eue F0sltSJeHziqbKh27ZJuoYcRwcVWG+q9c26f/GZAA4OLmzLI2hMtIfZP+NoPq4+tdKELy1hrUgcz/ qxivI5SoG/ycLKHmLcIZ569Ml7vZjdmWe6yJFb9lADZx5mtUhvMtTQu7K5rZ3tRen460hrM53cB5a 0RpMYIm2jG8PPMn/LlFyp40w4NX0Ag8qDUveLVdvoKCkJ5nO+WkA3qV3O3dXh4SqcvR7L72tfVvpg dmaP0liQ==; Received: from authenticated user by zero.zsh.org with local id 1mQdPd-0004V7-LK; Wed, 15 Sep 2021 22:29:53 +0000 Authentication-Results: zsh.org; iprev=pass (email.dondley.com) smtp.remote-ip=34.203.132.18; dkim=pass header.d=dondley.com header.s=default header.a=rsa-sha256; dmarc=pass header.from=dondley.com; arc=none Received: from email.dondley.com ([34.203.132.18]:39310) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mQdOt-0003nX-Dq; Wed, 15 Sep 2021 22:29:08 +0000 Received: from email.dondley.com (email.dondley.com [34.203.132.18]) by email.dondley.com (Postfix) with ESMTPSA id F2DDC20157 for ; Wed, 15 Sep 2021 18:29:04 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dondley.com; s=default; t=1631744944; bh=UpTaWxd4njUmRbHNvoSbNHewQ/BhAHic9hIfsUeEB3w=; h=Date:From:To:Subject:In-Reply-To:References:From; b=bmCXfdLp/8W1UoUrqCNf9ikCXpBF3ZJTGk0nbUaPX/gPtW+M8blxQQabajrhB4pjX kymT9CybPUsRfsPvaTdRT7VKUavUY0BjNZGxF7wXbbOiE1TrXYS+akRszCLZLXODku Hg8Wk3jliiVdg3uql9gY3X95+WGHWksUILlsJX0zsua3dWrTnuiMyczx6lGh3Qbbzt tE90a9Fmgz5XSnPcPkyaLdJlu6phu095mjpcPwpTWcseVNuvBdmLDp45fdYfHZoYX3 G55pQ/1XpRnHWWR5Hz95jlbvZLWYJDgT37Xo6LC2cEDhFZ58RjPzb9Ajf4qFYNUp3+ lrg6FP4xn1c3A== MIME-Version: 1.0 Date: Wed, 15 Sep 2021 18:29:02 -0400 From: Steve Dondley To: zsh-users@zsh.org Subject: Re: How do I get rid of _complete_alias error generated by bash code? In-Reply-To: References: User-Agent: Dondley Message-ID: <597ba0e55f9904347eec15ab823f6dd9@dondley.com> X-Sender: s@dondley.com Content-Type: multipart/alternative; boundary="=_58287aa0c3da950fcc5e1c850f591f88" X-Seq: 27124 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --=_58287aa0c3da950fcc5e1c850f591f88 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 2021-09-15 05:50 PM, Bev In TX wrote: >> On Sep 15, 2021, at 4:33 PM, Bart Schaefer >> wrote: > > On Wed, Sep 15, 2021 at 1:48 PM Steve Dondley 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 This looks very vaguely familiar. I think you are right and I did use this. Thanks for googling that for me. :) I've had a little too much wine with dinner to go back and figure out what I did 2 hours ago, never mind 2 years ago. I will review this tomorrow. Thanks! --=_58287aa0c3da950fcc5e1c850f591f88 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

On 2021-09-15 05:50 PM, Bev In TX wrote:

On Sep 15, 2021, at 4:33 PM, Bart Schaefer <schaefe= r@brasslantern.com> wrote:

On Wed, Sep 15, 2021 at 1:48 PM Steve Dondley &l= t;s@dondley.com> wrote:
I'm migrating my stuff from bash to zsh. I'm a s= tymied 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)

T= hat means that at some other point in your bash startup, a function<= br />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 defi= nition into your zsh startup as
well.  You must alre= ady be loading bashcompinit if there is no
complaint abou= t the "complete" command not being found.
Perhaps the OP is using:

This looks very vaguely familiar. I think you are right and I did use th= is. Thanks for googling that for me. :)

I've had a little too much wine with dinner to go back and figure out wh= at I did 2 hours ago, never mind 2 years ago. I will review this tomorrow. = Thanks!

--=_58287aa0c3da950fcc5e1c850f591f88--