zsh-users
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Richard Hartmann <richih.mailinglist@gmail.com>
Cc: zsh-users@zsh.org
Subject: Re: Safety check before expanding globs?
Date: Sat, 30 Jul 2011 14:28:13 +0200	[thread overview]
Message-ID: <CAHYJk3StFujnxDTmdxSRsw6KbZUDNZpUU6coEp1FuhB2GbbtLw@mail.gmail.com> (raw)
In-Reply-To: <CAD77+gShpyE1SPbvc5b3x57Q8xnQnJZH-0YsnCN8kQAr1z+2vA@mail.gmail.com>

On 30 July 2011 00:41, Richard Hartmann <richih.mailinglist@gmail.com> 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


  parent reply	other threads:[~2011-07-30 12:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-29 22:41 Richard Hartmann
2011-07-30 10:40 ` Jérémie Roquet
2011-07-30 12:28 ` Mikael Magnusson [this message]
2011-07-30 12:42   ` Frank Terbeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHYJk3StFujnxDTmdxSRsw6KbZUDNZpUU6coEp1FuhB2GbbtLw@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=richih.mailinglist@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).