Live data from Hacker News

Speeding up my ZSH shell

scottspence.com

101–110 of 133 posts

Re: Speeding up my ZSH shell

#101

With articles like these popping up all the time, oh-my-zsh is seriously harming zsh's reputation. It's giving the wrong impression of zsh being slow and bloated. zsh doesn't need configuration frameworks or plugins. All it needs is a change in the default settings so that its powerful completion works out the box. It currently needs more than ideal amount of tweaks to the defaults, which is probably why people flock…

I don't want to spend ages figuring out which knobs to turn to get a half decent shell. If there's an alternative to oh-my-zsh that looks halfway decent, has that nice fzf integrated, and the 'ghost text' history suggestions, then I welcome it!

I migrated from omz to zimfw and am reasonably happy.

But I have yet to meet anyone in real life who knows what zimfw is.

Re: Speeding up my ZSH shell

#102

With articles like these popping up all the time, oh-my-zsh is seriously harming zsh's reputation. It's giving the wrong impression of zsh being slow and bloated. zsh doesn't need configuration frameworks or plugins. All it needs is a change in the default settings so that its powerful completion works out the box. It currently needs more than ideal amount of tweaks to the defaults, which is probably why people flock…

Plus, a lot of the goodies can be added with compiled programs like Starship or Atuin. Less config, faster, work across several shells.

Re: Speeding up my ZSH shell

#103

With articles like these popping up all the time, oh-my-zsh is seriously harming zsh's reputation. It's giving the wrong impression of zsh being slow and bloated. zsh doesn't need configuration frameworks or plugins. All it needs is a change in the default settings so that its powerful completion works out the box. It currently needs more than ideal amount of tweaks to the defaults, which is probably why people flock…

I had no idea zsh had decent completion. How does it compare to fish?

Re: Speeding up my ZSH shell

#104
post #72

Earlier quoted context omitted.

I don't want to spend ages figuring out which knobs to turn to get a half decent shell. If there's an alternative to oh-my-zsh that looks halfway decent, has that nice fzf integrated, and the 'ghost text' history suggestions, then I welcome it!

I'm definitely not an expert, but I configure zsh manually with those fzf and "ghost text". I took some notes in my repo, just copy the relevant portions if you actually want to try this: https://github.com/bbkane/dotfiles/tree/master/zsh I tweak it occasionally, but for the most part I set it and forget it.

You split your config across multiple files. That slows startup noticeably.

Re: Speeding up my ZSH shell

#105
post #82

Earlier quoted context omitted.

FWIW I only ever saw zsh at colleagues screen(share) with Oh-My-Zsh 1. Utterly slow and cluttered 2. Colleagues leverage a tenth of its power than what they could achieve with pure bare bones bash Therefore, never bothered to even try (but had to fix some one liners so that they work on their fancy setup). Also, was surprised that macos switched to it as its default. I guess I never jumped on the oh-my-it's-so-slow-z…

For Fish, I'd recommend https://github.com/IlanCosman/tide instead

Oh nice thanks. Great idea with the async prompt update.

The repo hasn't seen new commits since more than a year, but new issues are still opened. Is it abandoned?

Re: Speeding up my ZSH shell

#106
post #100

With articles like these popping up all the time, oh-my-zsh is seriously harming zsh's reputation. It's giving the wrong impression of zsh being slow and bloated. zsh doesn't need configuration frameworks or plugins. All it needs is a change in the default settings so that its powerful completion works out the box. It currently needs more than ideal amount of tweaks to the defaults, which is probably why people flock…

No shell does, I am using computers since 1986 and I don't these "pimp my shell" kind of stuff with rainbows and virtual pets. CLI is for stuff that GUIs and IDEs for whatever reason don't support, or REPL like interactions.

The main thing I use the pimpshells for (and all I can honestly say is KNOW I’m using from omZ) is the colored/fancy prompts.

I’ve used colored informative prompts since DOS and having production servers be brilliantly red and dev servers a different color is quite helpful.

Re: Speeding up my ZSH shell

#107
post #105

Earlier quoted context omitted.

For Fish, I'd recommend https://github.com/IlanCosman/tide instead

Oh nice thanks. Great idea with the async prompt update. The repo hasn't seen new commits since more than a year, but new issues are still opened. Is it abandoned?

Quite possibly, but I use it daily with no issues. It’s also pretty easy to write your own prompt and then make it async with this plugin: https://github.com/acomagu/fish-async-prompt

Re: Speeding up my ZSH shell

#108

Oh-my-zsh has a lot of cool and handy features, but it is a huge and complex beast. Personally, I only cared about 3–4 features, so I simply removed it and sought out how to enable those features alone. Additionally, a lot of functionality which I wanted wasn’t there in OMZ, so my setup had a lot of custom bits anyway. My zshrc, for reference: https://git.sr.ht/~whynothugo/dotfiles/tree/269248912920d25e...

What's with the emoji alias?

Lol. Slipped in by accident, should never have been committed. Part of some messing around / test.

Re: Speeding up my ZSH shell

#109
post #82

With articles like these popping up all the time, oh-my-zsh is seriously harming zsh's reputation. It's giving the wrong impression of zsh being slow and bloated. zsh doesn't need configuration frameworks or plugins. All it needs is a change in the default settings so that its powerful completion works out the box. It currently needs more than ideal amount of tweaks to the defaults, which is probably why people flock…

FWIW I only ever saw zsh at colleagues screen(share) with Oh-My-Zsh 1. Utterly slow and cluttered 2. Colleagues leverage a tenth of its power than what they could achieve with pure bare bones bash Therefore, never bothered to even try (but had to fix some one liners so that they work on their fancy setup). Also, was surprised that macos switched to it as its default. I guess I never jumped on the oh-my-it's-so-slow-z…

1. macOS switched to zsh for default shell, not zsh+oh-my-zsh

2. macOS switched from bash to zsh mainly because of GPLv3

Re: Speeding up my ZSH shell

#110
post #3

Aha! Now I know that nvm was slowing my shell startup down. Now I've reconfigured .zshrc to lazy-load nvm, and everything's snappy: zstyle ':omz:plugins:nvm' lazy yes

You should try switching to mise. I tried fnm too which was an improvement but mise does the same as fast and supports essentially every language

Definitely Mise! I was an asdf user for a couple of years and Mise was such a nice replacement. I have to juggle several other languages, and each having its own tool for tool version management was a non-starter.
Post reply on HN