by soraminazuki · 1y ago · 0 comments
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 to these frameworks.
I wonder why ghost text history suggestions are popular though, I'd rather not have it. Shell history search works better, and I don't want my shell always showing me or whoever else is looking at the screen random commands that I've previously typed.
The curse of backward compatibility means that zsh does not break your setup or change things on you. And there are still developers left who bear the trauma from the one time that was tried back in the early-mid 90s in the 2.x version series. Sadly that means many new features remain inactive by default, especially anything written in shell-code like command-specific completions.
I'd rather have a good history search than autosuggestion, but having both is a net-positive in my day-to-day.
As an SRE, at my day job I often need to copy/paste commands that are generated from a playbook.
Our playbooks use Bash, and in practice Zsh is compatible. But a co-worker using fish often has to manually modify commands before running, and I'm not about that life.
The problem with fish is mostly the different syntax for setting variables and lack of heredocs. Sometimes the string substitution differences come up too.
I think auto suggestions and syntax highlighting plugins can be installed separately from oh-my-zsh.
I use starship for a better prompt, and it works on more shells than just Zsh.
I also have Atuin installed to share history across machines, and as a benefit the history search is a lot more powerful.
https://github.com/zsh-users/zsh-autosuggestions
I am running my home on hdd, not ssd. But still do not see justification of this lag.
I configured daemon mode to workaround an ZFS+sqlite issue. I also have my sync_frequency set to 5m (default is 1h) in the config. Perhaps those are making my experience smoother.
But I have yet to meet anyone in real life who knows what zimfw is.
I tweak it occasionally, but for the most part I set it and forget it.
The `z-shell` github org has (or had) some ... bad vibes, I would personally not use any of their code.
- https://recurse.social/@dylnuge/112224580867240812
- https://www.reddit.com/r/commandline/comments/1c3r7ck/zshell...
- https://www.reddit.com/r/zsh/comments/1c3r5gn/zshellzi_users...
You could use `zsh-users/zsh-syntax-highlighting` as an alternative.
I use it and never had any issue. Am I missing out on something?
Some of the autocompletion settings set by oh-my-zsh are useful. But apart from that, the majority of the code consists of gazillions of random aliases and functions that someone else needed. It pollutes the command namespace for no good reason except maybe making users more wary of typos. The last time I checked, sudo was aliased as "please", and I can't find a single reason why that'd be useful.
oh-my-zsh also introduces a lot of churn, which is why it has autoupdates. Autoupdates. The only time I needed to change my configuration in vanilla zsh because of a change in zsh was once or maybe twice over a span of 10+ years.
CLI is for stuff that GUIs and IDEs for whatever reason don't support, or REPL like interactions.
I’ve used colored informative prompts since DOS and having production servers be brilliantly red and dev servers a different color is quite helpful.
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-zsh bandwagon. OTOH, fish+starship combo /that was also recommended here/ seems interesting
2. macOS switched from bash to zsh mainly because of GPLv3
I always turn all of the languages plugins off in Starship for this reason.
Even with a huge monorepo and git stats displayed after every press of return it's OK (I win time at other places), but it's intriguing to have the same fast prompt display that I would otherwise have outside local git clone's directories.
What seems sexy about fish/starship is that there is built-in performance check / benchmark for slowdowns.
The repo hasn't seen new commits since more than a year, but new issues are still opened. Is it abandoned?