Live data from Hacker News

Zsh 5.0 released

github.com

31–40 of 59 posts

Re: Zsh 5.0 released

#31

Earlier quoted context omitted.

No, substring searches. Ctrl+R in bash (by default, at least) will not search from the middle of a command. For instance, if the previous command was "hello", searching for "ello" will not bring it up. Whereas with zsh, it will.

The default bash on OS X (3.2.48(1)-release) just did when I tried it.

Ctrl+R definitely works that way with bash, but I think he may be referencing tab completion:

    > ell
    Completing external command
    git-shell  xdmshell   xkbbell  
    Completing shell function
    _ispell

Re: Zsh 5.0 released

#33
post #20

I liked zsh a lot until I found that it would take a long time to cd into certain directories, I think they were ones with large git repositories. Maybe there's some way to shut that off but I went back to bash where I could be sure things would be responsive.

> Maybe there's some way to shut that off

Not using oh-my-zsh or the like, zsh has lots of hooks and omz uses a lot of this hooks for or around git repos, so CD-ing into a git repo entails loads of work.

Use vanilla zsh and configure as needed, and it'll be as zippy as everywhere else.

Re: Zsh 5.0 released

#34

Updated Homebrew's Zsh formula for v5, give it a +1 if you want to see it updated faster: https://github.com/mxcl/homebrew/pull/13543

GitHub still doesn't have a +1 button and you must still clutter the issue tracker with +1 comments? Wow.

GitHub still does not give you the revision at which a pull request was merged (even if you did it from their interface), if you don't specifically reference the request from the commit message (to create a backlink) the relation is lost to gh.

It's annoying when you're trying to see where/when a fix has been landed.

Re: Zsh 5.0 released

#37
post #18
post #13

I know this has been asked thousands times before, but I want to know with this latest release, should I switch from Bash to Zsh now? What features do Zsh offer which are not in Bash? Currently I'm thinking about the Fish-style syntax highlighting. Fish is really nice, but it's not very compatible with the rest of the shell environment. So I'm back on Bash, but really miss the syntax highlighting. I need some good re…

I switched to zsh a couple of years ago, and I wish I'd never even started with bash! It's one of the few app changes I've made where I unequivocally regret not having made it sooner (the other notable one is sawfish -> xmonad -- make of that what you will!)

But the OP asked why, not if, he should switch.

Re: Zsh 5.0 released

#38
post #6

I didn't realize that the zsh OS X currently ships with (4.3.11) isn't a stable release. Is that unusual for their built-ins?

Everyone ships with the development 4.3.x series, because stable Zsh releases are very rare and the development series is actually very stable. It is not just OS X by far.

Re: Zsh 5.0 released

#39
post #13

I know this has been asked thousands times before, but I want to know with this latest release, should I switch from Bash to Zsh now? What features do Zsh offer which are not in Bash? Currently I'm thinking about the Fish-style syntax highlighting. Fish is really nice, but it's not very compatible with the rest of the shell environment. So I'm back on Bash, but really miss the syntax highlighting. I need some good re…

The problem I have with zsh is that I don't really notice any benefits from it after switching from bash or whatever. I guess my problem is that I'm still using it like bash, which probably isn't a bad thing but I'm probably missing out on the other features it has.

Thing is there's no real feature I've noticed that made me think "Wow! How did I live without this?". Yeah I see some nice things but they feel like party tricks rather than game changing features.

I dunno, maybe I'm not seeing the big picture here. Is there anything out there that'll show what amazing things that zsh can do? Like is there anything out there that could make me stop using it like bash?

Re: Zsh 5.0 released

#40
post #13

I know this has been asked thousands times before, but I want to know with this latest release, should I switch from Bash to Zsh now? What features do Zsh offer which are not in Bash? Currently I'm thinking about the Fish-style syntax highlighting. Fish is really nice, but it's not very compatible with the rest of the shell environment. So I'm back on Bash, but really miss the syntax highlighting. I need some good re…

Completion in Zsh alone made it worthwhile for me. The completion scripts for Zsh are worlds more powerful and complete than anything I've found for Bash. And, there's even a script that offers Fish-like syntax coloring for Zsh: https://github.com/zsh-users/zsh-syntax-highlighting/ But not having used Fish yet myself, I can't really offer any reasons to use Zsh over Fish.

>I can't really offer any reasons to use Zsh over Fish.

Bash script compatibility, bigger userbase and therefore more third party customizations.

Post reply on HN