Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
disable substring match on command name
- X-seq: zsh-users 18542
- From: Amm <ammdispose-zsh@xxxxxxxxx>
- To: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: disable substring match on command name
- Date: Mon, 3 Mar 2014 01:08:04 +0800 (SGT)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1393780084; bh=jMBJoqoKUbHYVjckT/iIKEY+T0EPFH1IR108yWbHAUU=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=gOfN1YCtGO3NHBv2Z6LbwZD+xRGzIsGLLXX/PD0BCO/SDSacqCRK3SWBQSr1Gt5w83Yg1yzzEhphqsMTX4/HugvngaMILAeYbOsVvqjJDDf+9zGZCFV0C2sQWQySXBJk7Zahq6aokwYwTTv45e8bhgT8IPDFjKp6ziethlSjG0E=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=UJme1uRSn1woESSZrL3mLBZuwruWWVN6hkgtWuLwEzvfyhd2KXxCE2xYFxsQZ5cC/N6DCpvGLGfsyWkX60epv0HCCknw75rud6kWlI2IQ1xorVMyi68LjQq9dIBT2lU0G9Sen73/GAViSobmmp0nMfELQQ+nXD2FSK7lMVf+Kuc=;
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Reply-to: Amm <ammdispose-zsh@xxxxxxxxx>
Hello,
I have following line in .zsh (via zsh-newuser-install)
zstyle ':completion:*' matcher-list '' 'r:|[._-]=** r:|=**' 'l:|=* r:|=*'
This does substring match on command and filenames.
i.e. if there is command in system say /usr/bin/foobar and I type
$> oob<TAB>
it changes to foobar.
This
can cause accidental running of some different command if there is
spelling mistake. (Especially when you are in a hurry). As with spelling
mistake there is high chance of matching a random command.
What I would like is substring match to work only on file and directory names. (i.e. arguments to command)
I do not want substring match on command.
Please
suggest how to do it? I searched on Google but could not find anything.
(Either I dont know right keyword to search or not many want this
feature)
Amm.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author