Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Safety check before expanding globs?
- X-seq: zsh-users 16163
- From: Jérémie Roquet <arkanosis@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Safety check before expanding globs?
- Date: Sat, 30 Jul 2011 12:40:15 +0200
- Cc: Richard Hartmann <richih.mailinglist@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=UcbILWNeAmE/4jBAnJqyEyzpein1n9EW/Gn7rXvJYBE=; b=lDS94kt9KftV6aIEzN+QyP4KxJu+ut/YZJIjzcsJQZ6XV6UNF3N5Rz9Jt++PvEuti0 EFUXAcAK/SJ6uhEUH0AYGYmZVPJPeqNnTBUaDbFo5TuINH/q3lX0Yhy9s/+qSsBNDSx0 aGS+oprUMsJM+MraQAqdJfXcbU/mn2aZcELZo=
- 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>
Hi Richard,
2011/7/30 Richard Hartmann <richih.mailinglist@xxxxxxxxx>:
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author