News for hackers. Stuff that matters.
Re:Zsh 5.0 released by dserodio on Monday July 23, 2012 @09:43AM (#4280890)
Besides the awesome TAB completion, here are a few features that I use daily:

- Keyboard navigation for TAB completion (using the arrows)

- Coloured TAB completion

- "for" one-liners: for f in /*.py; wc -l $f

- Named directories (cd ~named_dir)

(edit: formatting)

Re:Zsh 5.0 released by adamrt on Monday July 23, 2012 @12:43PM (#4281851)
This is not an attempt to argue with your feature list. Bash clearly doesn't do some of those. But I just noticed the for one-liners you mentioned. I do that in bash alot actually. This is just fyi for anyone reading, not trying to argue with your feature list.

for f in *.py; do wc -l $f; done

also, you can do something like

for f in `find project_name`; do wc -l $f; done t work on the output of another command.

Cheers!

Re:Zsh 5.0 released by Afal on Monday July 23, 2012 @10:23AM (#4281098)
That for loop looks pretty neat, however I don't tend to write loops that often on the command line so it doesn't really benefit me that much.