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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13157 invoked from network); 15 Sep 2021 20:48:59 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 15 Sep 2021 20:48:59 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1631738939; b=oaEuN1cOZNVOq4ofRD8/XmY6qq1S3KvCo9i+qsnYBMYQauFUfuOZOLSRUktMEgltcwjoOZS7FS YAKvHVJmW+KI4iQnlN9RdNPC4Iy3AQPBHoqEe0YrzGVxBgFSybJcg+NgPywwq1JdZ+KyYkWeeR OL4gLV7gjIHYWq2lVZEUqvGpsGAGRa4060m+wOg6PHaQOkGakqUTsP9c0fk/BkJQNDj5IQYUcO jQGyS+GktbZspQOdPUn5GcU3EQP00EBnV05vR7DoLvRs/ijlq2h8Pg3deUQllJ1PrpqxxBEySh boTyzxNs8ldezfoQGxbVgozq2iqI5g93Rpxue2Iur2rkEA==; 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=1631738939; bh=PCd73x7wMm1vCF0flkefRTuZPtvfqqjg1D763/5EpIk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Message-ID:Subject:To: From:Date:MIME-Version:DKIM-Signature:DKIM-Signature; b=WGk/OWsOoKLnuSNWhvpqXkTpndJ8V+Stz+NkuhIVklK1OpH+AYPgUElE/7mVvxJh3vuYMIx5cS /PukpiY3THCefo1/88AIOY1cqvwrH8CC/d/LNGyFjEUKV1GuX7x5LBAychmyrnUosOlQg4KRcy VUgIm2lH4WPvSKUghT8M9AY8d+WpwrAOAcMCiybAtmR3uuhd26GYTATe10QleV+FbnLAZ0Fm+G 1EO+/8iHRv6cWWmDwxFSnVw5hU3hjegeZSZUjYQl87FVRlnXWaOgrIAfRdMeT4Xs97DHvzfD+Q sAyfGWNIZecV4AZ0Okmvsq8fmRCapS9vCIOAkUXRXIPjCg==; 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-Transfer-Encoding: Content-Type:Message-ID:Subject:To:From:Date:MIME-Version:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=oJIp1dtFSiGnRg/eg6bVpiXyzx4ff6C89Njne7V7UG8=; b=n3aUBu6l9x0v5EkxT7dBPcq72s jieZ9XVxDKAk3vlK2jmZV/V+57npkfquCQoTJTAIDSnDrw0kVMGLSE0Ubx1/FoRMxbHBc0ygLwG3n 9JkjE7G6Vhng8X7cEUKdkLbnewQYOgVUtQ1J6ADVSxy9yUTMPG8+wD6Ey3CnaEdFDM6T2eTznliMf 10jvfpkXQqBCHNtagrZ1p2SjpF/VQkaM+P7F51CLRfujyY/eavtpiR2i2FrCiRJQC0p6FCUrLbEsn hMNcpicaWDY0xuerqaOu6KJUX4yfSXhl/cuHPtl5wjqxjviLVdAq+pXrgaa3QXnOIEzLR+mhTDz3F fvB6Pkyw==; Received: from authenticated user by zero.zsh.org with local id 1mQbpy-000KnO-Fy; Wed, 15 Sep 2021 20:48:58 +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]:36922) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mQbp7-000K6N-TB; Wed, 15 Sep 2021 20:48:07 +0000 Received: from email.dondley.com (email.dondley.com [34.203.132.18]) by email.dondley.com (Postfix) with ESMTPSA id 1D5FB20762 for ; Wed, 15 Sep 2021 16:48:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dondley.com; s=default; t=1631738881; bh=PCd73x7wMm1vCF0flkefRTuZPtvfqqjg1D763/5EpIk=; h=Date:From:To:Subject:From; b=BYxzwHStPMUclm9yK1Qp/+rosvIBJFWSmvctDNIiA2N6UJOzrgglb8h/YdjiyiKMt jHJIhKjqR4/XP6xKQcML7SY+WvZbSxNRDISgFCGXZKKErCxoM5oEI+bUiCiGO5nOIu zqvyA2S+3QOXGMWIf4PFYadTalWCnEZQoB6zZCkjD8+7JQV4lJix2BmQ0XPhcZ2dK4 +ybYXmbMWPDSinA8bR7MYyEF1NQurJmXMFMGIt1lUmJ8+DCUpC+DwihFSiMU1PQHgg g+ZT9XJpWuhd9skfMpAI4YQ/ec/uLUkcqDHSh4tSu6zQkJSSNyjC90W4PMoYOZ9nFH uCwYOuZwjAptQ== MIME-Version: 1.0 Date: Wed, 15 Sep 2021 16:48:00 -0400 From: Steve Dondley To: Zsh users Subject: How do I get rid of _complete_alias error generated by bash code? User-Agent: Dondley Message-ID: X-Sender: s@dondley.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Seq: 27119 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: 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?