Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Safety check before expanding globs?



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