4 ms·
To add to this, zsh (or maybe just oh-my-zsh) has tab complete for globbing, so if you type echo foo/bar/*.py and hit tab, it will automatically expand into
by chrisshroba 11y ago
To add to this, zsh (or maybe just oh-my-zsh) has tab complete for globbing, so if you type
echo foo/bar/*.py
and hit tab, it will automatically expand into
echo foo/bar/quux.py foo/bar/quux2.py foo/bar/quux3.py
(assuming quux.py, quux2.py, and quux3.py are the only 3 python files in foo/bar/) This way, you can preview all the files that you are affecting before actually hitting enter and running the command.
You can also recursively glob by doing
echo foo/bar/**/*.py
which will find all .py files in foo/bar and any subdirectories
It's definitely worth installing and trying for an hour, you can decide if you like it or not!
Here are more cool features! (Not my website)
http://code.joejag.com/2014/why-zsh.html http://code.joejag.com/2014/why-zsh.html