News for hackers. Stuff that matters.
Re:How zsh is more useful than bash by jejones3141 on Saturday May 11, 2013 @08:44AM (#5690442)
The site1 site2 substitution slide is at best disingenuous; I believe in bash you could type

^site1^site2

and get the same result.

Re:How zsh is more useful than bash by asdfaoeu on Saturday May 11, 2013 @09:23AM (#5690521)
Not at all. ^site1^site2 would only work if it was your last command.

The idea, I believe, is when your browsing around multiple versions of the same directory structure. The 'cd site1 site2' allows you to jump directly to the equivalent directory in the other structure.

The equivalent in bash would be something like: cd `pwd | sed 's/tmp1/tmp2/'`

Re:How zsh is more useful than bash by ralph on Saturday May 11, 2013 @04:41PM (#5692028)
In bash: cd ${PWD/foo/bar}