From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19417 invoked by alias); 22 Dec 2011 23:01:27 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16661 Received: (qmail 9658 invoked from network); 22 Dec 2011 23:01:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at atoom.net does not designate permitted sender hosts) Date: Fri, 23 Dec 2011 00:01:08 +0100 From: Miek Gieben To: zsh-users@zsh.org Subject: Re: default to file completion Message-ID: <20111222230108.GA32237@miek.nl> Mail-Followup-To: zsh-users@zsh.org References: <20111218101116.GA4446@miek.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: User-Agent: Vim/Mutt/Linux X-Home: http://www.miek.nl --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [ Quoting at 14:57 on Dec 18 in "Re: default to file ..= =2E" ] > > If I use tab completion the following happens: > > > > ./scan -zone > > > > And nothing gets completed. How can I tell zsh to fallback to filename > > completion at that point? >=20 > "scan" is a command that already has completion in zsh (it's part of > mh), but if you don't have mh it won't be able to produce any > completions. To disable a bundled completion, run compdef -d scan > after running compinit. While watching TV, I thought about this again. Is there a way to disable the default completion for the command 'scan' if you start it with './' ? Or, more general, if you start a command with ./ can you automatically disable the default completion? grtz, --=20 Miek --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk7ztrQACgkQJYuFzziA0PZdhACghruUlhYbsyFUFAlheQUkpLq5 j2kAn2/XCQT3pnxqJwiR3WZkXMV47V+D =Q35q -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--