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

Re: Safety check before expanding globs?



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