Live data from Hacker News

Zsh 5.0 released

github.com

21–30 of 59 posts

Re: Zsh 5.0 released

#21
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.

Same problem here. I think this is based on git plugin, since it displays current branch when you cd into directory. You can try disable that plugin.

Re: Zsh 5.0 released

#23
post #17

Earlier quoted context omitted.

I switched solely for the reason Zsh has command substring search. It's a huge timesaver for some who spends more than 50% of time on the terminal.

Ctrl-R in bash?

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.

Re: Zsh 5.0 released

#24
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.

Some of the plugins included in contrib, as well as really feature heavy pre-made configs like oh-my-zsh can slow things down. They're good to use as a starting point, but you can make the features you actually want really fast with some research.

Re: Zsh 5.0 released

#25
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.

One thing I have noticed is a delay in tab completion with the `git checkout` command.

In my plain gnome-terminal with git it would instantly autocomplete when I pressed tab.

Re: Zsh 5.0 released

#26
post #17

Earlier quoted context omitted.

Ctrl-R in bash?

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.

Re: Zsh 5.0 released

#27
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…

My favorite feature is that zsh offers vi mode when editing your commandline, just press ESC.

Re: Zsh 5.0 released

#28
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…

My favorite feature is that zsh offers vi mode when editing your commandline, just press ESC.

[deleted]

Re: Zsh 5.0 released

#29
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.

Were you using oh-my-zsh?

I have a few patches that speed up its git plugin by letting you opt-out of expensive operations. https://github.com/davvid/oh-my-zsh/commits/davvid

Last I checked, oh-my-zsh was in transition to a new version(?), and the pull requests have generally been ignored because of this.

Re: Zsh 5.0 released

#30
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…

My favorite feature is that zsh offers vi mode when editing your commandline, just press ESC.

Bash also supports set -o vi.
Post reply on HN