Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completing a unique prefix of "script" completes "script"
- X-seq: zsh-users 10595
- From: "Nikolai Weibull" <now@xxxxxxxx>
- To: "Peter Stephenson" <p.w.stephenson@xxxxxxxxxxxx>
- Subject: Re: Completing a unique prefix of "script" completes "script"
- Date: Sun, 13 Aug 2006 16:49:04 +0200
- Cc: "Zsh Users' List" <zsh-users@xxxxxxxxxx>
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=OwYDy/r4yIxOgFEX/uNTotrEti9dxERMzYONki3M/c4Hb59F+EB9ChWdJFJ/BKRdpUL5otmsPp5O/UYydoEUTR3VnzhM2rj014d4QZXkdJTDvgFvY+lVJFqS/iD+zu4KftnNhfvd7DT3748inw8FCwMogXNgO8xZEb48xlTnRdY=
- In-reply-to: <200608102141.k7ALfw4J005496@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <now@xxxxxxxx> <dbfc82860608101317t469b4f6eida99a1a390dc49c0@xxxxxxxxxxxxxx> <200608102141.k7ALfw4J005496@xxxxxxxxxxxxxxxxx>
- Sender: nikolai.weibull@xxxxxxxxx
On 8/10/06, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
"Nikolai Weibull" wrote:
> Is there a way to make sure that both options, i.e., "script/" and
> "script ", are completed?
You can cheat and unhash the command if you never use it. "unhash
script" did seem to do the trick. Note, however, that a "rehash" will
bring it back.
It seems that the hash table is initialized after .zshrc is read. Is
there a way to run some scripts after everything is initiaziled?
I just stuck
[[ -n $(whence script) ]] && unhash script
in my .zshrc and figured that it'd work ($path being set in my
.zprofile). That failing, I put a "rehash" before that line. I still
get
/home/now/.local/etc/zsh/.zshrc:unhash:36: no such hash table element: script
What am I missing?
And thanks for the very complete answer. Too bad none of the
solutions seem to work very well.
nikolai
Messages sorted by:
Reverse Date,
Date,
Thread,
Author