Live data from Hacker News

How zsh is more useful than bash

slideshare.net

71–80 of 151 posts

Re: How zsh is more useful than bash

#73
post #62

WTF? I wrote this slide deck. It was a presentation I made for a monthly "tech lunch" my team has. I made it after a couple of weeks of messing with zsh. It was for an audience of 4 other people who knew less about zsh than me. I can't believe someone posted it to HN! That explains the "this slide deck is getting traffic" email I got from Slideshare this morning.

I enjoyed the slides. Great job!

Many people like me are new to whole Unix system and need trainings like this. I did not even know that I can upgrade my bash via homebrew.

I don't dare to switch to zsh yet. I'm afraid if it messes up all my bash_profile, rvm stuff and Vim configs. I have a bad memory with fish_fish

Re: How zsh is more useful than bash

#74
The article with Knuth's program and Doug's reply is: http://dl.acm.org/citation.cfm?id=315654&CFID=329016541&... (Don't have a non-paywall version.)

Regarding the claim about Knuth's program being long, it is worth considering that (1) his program was primarily a demonstration of literate programming style, which contains considerable embedded documentation (2) the program needed to build significant basic infrastructure to support itself, including IO, sorting, case equivalence (including a table with each upper-case and lower-case letter), etc.

Doug's criticism and comparison of Knuth's solution vs. his own is insightful worth reading.

Re: How zsh is more useful than bash

#75
post #73
post #62

WTF? I wrote this slide deck. It was a presentation I made for a monthly "tech lunch" my team has. I made it after a couple of weeks of messing with zsh. It was for an audience of 4 other people who knew less about zsh than me. I can't believe someone posted it to HN! That explains the "this slide deck is getting traffic" email I got from Slideshare this morning.

I enjoyed the slides. Great job! Many people like me are new to whole Unix system and need trainings like this. I did not even know that I can upgrade my bash via homebrew. I don't dare to switch to zsh yet. I'm afraid if it messes up all my bash_profile, rvm stuff and Vim configs. I have a bad memory with fish_fish

zsh touches none of the above. You should be good!

Re: How zsh is more useful than bash

#76

Path replacement is also possible in bash, as in: cd site1 site2 if you just add this line to your ~/.bashrc: function cd() { if [ $# -eq 2 ]; then builtin cd ${PWD/$1/$2}; else builtin cd $1; fi }

that way all zsh functionality is "possible" if you write those functions.

Re: How zsh is more useful than bash

#77
post #65
post #62

WTF? I wrote this slide deck. It was a presentation I made for a monthly "tech lunch" my team has. I made it after a couple of weeks of messing with zsh. It was for an audience of 4 other people who knew less about zsh than me. I can't believe someone posted it to HN! That explains the "this slide deck is getting traffic" email I got from Slideshare this morning.

I had just switched to zsh and found your deck when searching for something like "zsh features", I thought "hey this is great for starting out with zsh and maybe a good post for HN". Thank you for releasing it for everyone to see.

I'm glad that you and other people found some value in it. When I saw it here, I was worried the comments would tear it to shreds. :)

It was just a bit of a shock when I clicked the link. Since the link title was slightly different than what I named my slides, I just thought, "oh hey, another zsh comparison, let's see what this guy/gal said"...

Re: How zsh is more useful than bash

#78

Earlier quoted context omitted.

> It's better. What's "better" about it?

It's got all the zsh features and doesn't need 4 seconds to start, like zsh did for me with oh-my-zsh.

Oh-my-zsh is responsible for being slow as hell. If you really want plugins, Prezto probably still has what you want and is significantly faster on startup. (In my experience, with very minimal customization.)

Re: How zsh is more useful than bash

#79

Bah! Give me Ksh.

I much prefer ksh myself, in particular for scripting. Fun fact about how bash is broken: export a=0 cat $file | while read line do a=$(expr $a + 1) done Bash will fork the while loop as a separate process, inheriting (copying) its own environment, and the variable will only update locally, not in the parent process.

save a kitten =)

Re: How zsh is more useful than bash

#80
post #78

Earlier quoted context omitted.

It's got all the zsh features and doesn't need 4 seconds to start, like zsh did for me with oh-my-zsh.

Oh-my-zsh is responsible for being slow as hell. If you really want plugins, Prezto probably still has what you want and is significantly faster on startup. (In my experience, with very minimal customization.)

Well, in the end I realized I had customized it to look and work exactly like fish, so I switched to fish.
Post reply on HN