Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Safety check before expanding globs?
- X-seq: zsh-users 16164
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Richard Hartmann <richih.mailinglist@xxxxxxxxx>
- Subject: Re: Safety check before expanding globs?
- Date: Sat, 30 Jul 2011 14:28:13 +0200
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dqzxlaWBX5yZzkt35tSC6k5C4YIe1eGjwYXUrfXyFFc=; b=LN86jXwuCwvfpsscYSxUlHxoo1G4WDxndVdu4Hhx28Dppao/hrCRZMeB0VqS0QLd/2 reb93d1/u4EJja0SwmZUnHGoKPlLXdgV+gAWFHeaJkOD4+sJuEckOxSD2tefkqN8Yyxs vqz/a75c2DYS/C0YewNr9R1Xib6jiR3m6GR6o=
- In-reply-to: <CAD77+gShpyE1SPbvc5b3x57Q8xnQnJZH-0YsnCN8kQAr1z+2vA@mail.gmail.com>
- 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
- References: <CAD77+gShpyE1SPbvc5b3x57Q8xnQnJZH-0YsnCN8kQAr1z+2vA@mail.gmail.com>
On 30 July 2011 00:41, Richard Hartmann <richih.mailinglist@xxxxxxxxx> wrote:
> Hi all,
>
> I regularly use
>
> quux /foo/bar/*<tab>
>
> to expand all files, do some modifications and then hit enter. Is
> there any way to have zsh ask for confirmation (or require two tabs)
> before expanding said list? Alternatively, is there a way to undo the
> expansion?
You might like the list-expand binding. Contrary to the name it
doesn't expand anything, it just lists the result of a glob below the
prompt.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author