Zsh: how to return the "unexpanded" command

Zsh has a nice globs extension feature:

% ls **/*.js

Hit Tab Turns It Into

% ls app/assets/javascripts/application.js vendor/assets/javascripts/Markdown.Converter.js

Is there any way to roll it back to the original version of glob? Or should I just disable the glob extension?

The reason I want is because when I am in the middle of glob debugging and I press Tab to double check something, there is no way to go back and complete the template. I have to start from scratch.

+7
source share
1 answer

Use the undo zle command. For example, bind it to Ctrl _ :

 bindkey '^_' undo 

From zshzle(1) :

 undo (^_ ^Xu ^X^U) (unbound) (unbound) Incrementally undo the last text modification. redo Incrementally redo undone text modifications. 
+11
source

All Articles