Live data from Hacker News

Oh My Zsh adds bloat

rushter.com

51–60 of 304 posts

Re: Oh My Zsh adds bloat

#51

Earlier quoted context omitted.

That misses the point. I don’t even want to think about any of that stuff. It’s a single command to install oh-my-zsh. I can fire it off, check Slack, and come back in 5 minutes. If I have to take 5 minutes to setup it up, I’m just not going to do it.

Caring enough to read a blog post and comment on hackernews, but not enough to copy/paste the changes from the blog post is a very fine line.

[deleted]

Re: Oh My Zsh adds bloat

#52
post #7

I had the same gripe as the author. OhmyZSH seems too bloated for my needs. Added to that, the defaults adds (and oft unnecessary) emojis to prompts & outputs - something I don't find tasteful or appealing. I stripped out most of the OhMyZsh functions (which is pretty modular given a shell package) and created a smaller, leaner package (leanZSH) having only the known stuff I may use. I have been using it without much…

In a similar vein, there is slimzsh [1]. For me, it is a minimal config that enables everything that's useful, and only that. Quite a few others and I have been using this for more than a decade. https://github.com/changs/slimzsh

Re: Oh My Zsh adds bloat

#53
post #4

I use oh my zsh for exactly one reason: I can get a good shell experience out of the box and immediately start working on stuff productively, whether it's a new machine, a new remote host or a container. I could spend hours figuring out all those things, bit I'd rather use that time for something more important.

Try https://starship.rs then. Starship gives you the same "drop in and go" experience but without the 200ms+ prompt lag. One curl -> one line in your rc file, works on zsh/bash/fish/whatever. Configuration is straightforward and easy imo: https://starship.rs/config/ Give it a spin, I think you won't regret it.

Oh my zsh makes installing extension so easy, just edit .zshrc and add extract, fzf, z, etc. To the list of plugins

Re: Oh My Zsh adds bloat

#54
post #25

Like many other people, I use oh-my-zsh for default setup and that's it. I literally use a single plugin for git and very actively autoload my custom functions to avoid startup delay. With my 384 line config and oh-my-zsh on, here are the results: $ hyperfine -N "zsh -lc 'exit 0'" "zsh -c 'exit 0'" Benchmark 1: zsh -lc 'exit 0' Time (mean ± σ): 54.5 ms ± 6.3 ms [User: 10.2 ms, System: 14.3 ms] Range (min … max): 38.1…

You should try extract, z, and fzf

Re: Oh My Zsh adds bloat

#55
post #4

I use oh my zsh for exactly one reason: I can get a good shell experience out of the box and immediately start working on stuff productively, whether it's a new machine, a new remote host or a container. I could spend hours figuring out all those things, bit I'd rather use that time for something more important.

Try https://starship.rs then. Starship gives you the same "drop in and go" experience but without the 200ms+ prompt lag. One curl -> one line in your rc file, works on zsh/bash/fish/whatever. Configuration is straightforward and easy imo: https://starship.rs/config/ Give it a spin, I think you won't regret it.

Never heard of this, looks pretty good. Are there any community themes based on starship like powerlevel9k/10k?

Re: Oh My Zsh adds bloat

#57

I switched to zim years ago and found it has all the features that I need but is much faster and I think easier to install (though I haven’t installed either for some time). https://zimfw.sh/

Fast as sin, and one of the most flexible installers systems. You can point it at an incredibly diverse array of different things to install, in different forms, with different urls, and it will just do the thing.

Zimfw definitely has it's own ecosystem, plugins which are zimfw capable. But it's remarkably versatile at bringing in zsh code. Most plugin-systems are pretty ego-centric, demand specific implementations, and zimfw stands out not just for it's ridiculously impressive speed & handling, but for it's versatility too.

Zimfw rocks.

Re: Oh My Zsh adds bloat

#58

Are we really quibbling over 400ms startup delay to open a new terminal?

Yes! The very famous xz hack was only found, because a German wondered why his ssh session lagged 200 ms at the start. Everyone should go mad when their main tool lags a few hundred milliseconds. It is unacceptable that we sit on machines, that run billions of calculations per second and our software still lags.

Re: Oh My Zsh adds bloat

#59
post #10

Earlier quoted context omitted.

Show me an environment where I can interact with my system programmatically, where I can compose together arbitrary tools, and which will never, ever, ever break on me, and I'll switch! My experience with graphical environments has been that they rarely compose, often break, and constantly make arbitrary changes that break my workflow. So every time I try something else I end up coming back to the terminal. But I agr…

https://fishshell.com/ https://xon.sh/ https://www.nushell.sh/ https://elv.sh/ You're replying to someone that says POSIX shells are holding people back, not that the terminal is a bad idea, there are many alternative shells which offer benefits over POSIX shells. fish-shell has everything you want from an interactive shell included, xonsh is a mix Python shell, nushell and elvish are adding types and other things to…

zsh isn't strictly POSIX compliant either but this is fair and I should've read that comment a bit deeper.

Re: Oh My Zsh adds bloat

#60

zsh is still crazy to me. I use bash for everything. I have no idea what I’m missing out on.

I don't think it is crazy, but I know and love the bash quirks. I've got permanent history setup thanks to Eli Bandersky [1] which I know zsh has a solution to already. But what annoys me with zsh is some of the ways it tab completes when navigating the filesystem, and not by default allowing comments on the command line, e.g. '# github api key blahblahblah', which I can then pull later using phgrep.

Slight pain on a mac to get the latest version and use it as terminal shell, but it gets easier everytime I work on a fresh mac.

[1]: https://eli.thegreenplace.net/2013/06/11/keeping-persistent-...

Post reply on HN