From: "Jérémie Roquet" <arkanosis@gmail.com>
To: zsh-users@zsh.org
Cc: Richard Hartmann <richih.mailinglist@gmail.com>
Subject: Re: Safety check before expanding globs?
Date: Sat, 30 Jul 2011 12:40:15 +0200 [thread overview]
Message-ID: <CAFOazAPePciLp3Q5ZZk7aGDjvDc9Wi1FLwfp02spXunpBHXvTQ@mail.gmail.com> (raw)
In-Reply-To: <CAD77+gShpyE1SPbvc5b3x57Q8xnQnJZH-0YsnCN8kQAr1z+2vA@mail.gmail.com>
Hi Richard,
2011/7/30 Richard Hartmann <richih.mailinglist@gmail.com>:
> 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?
Just wondering… why would you hit “tab” if it's not for expansion?
> Alternatively, is there a way to undo the expansion?
Yes, the “undo” function can do that. It's bound to ctrl+_ by default,
with emacs-like key bindings.
Best regards,
--
Jérémie
next prev parent reply other threads:[~2011-07-30 10:47 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 [this message]
2011-07-30 12:28 ` Mikael Magnusson
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=CAFOazAPePciLp3Q5ZZk7aGDjvDc9Wi1FLwfp02spXunpBHXvTQ@mail.gmail.com \
--to=arkanosis@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).