TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Oh My Zsh

159 pointsby praashover 1 year ago

30 comments

pprotasover 1 year ago
Do yourself a favor and try to configure your shell without ohmyzsh first. You’d be surprised at how few plugins actually require it, and you save yourself from horrible performance.
评论 #39102420 未加载
评论 #39102266 未加载
评论 #39103178 未加载
评论 #39105302 未加载
评论 #39102271 未加载
评论 #39122817 未加载
vorticalboxover 1 year ago
I used ohmyzsh with powerlevel10k&#x2F;powerlevel10k[0] for years though recently i&#x27;ve settled on fish [1]<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;romkatv&#x2F;powerlevel10k">https:&#x2F;&#x2F;github.com&#x2F;romkatv&#x2F;powerlevel10k</a> [1] <a href="https:&#x2F;&#x2F;fishshell.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;fishshell.com&#x2F;</a>
评论 #39105891 未加载
评论 #39101480 未加载
评论 #39101378 未加载
评论 #39106849 未加载
评论 #39107628 未加载
评论 #39101962 未加载
评论 #39101512 未加载
cbarrickover 1 year ago
I never understood how omz was useful.<p>Zsh already has a module system (autoload), a prompt framework (promptinit), and Git integration (vcs_info) builtin.<p>I have a pretty extensive Zsh setup in vanilla Zsh: <a href="https:&#x2F;&#x2F;github.com&#x2F;cbarrick&#x2F;dotfiles">https:&#x2F;&#x2F;github.com&#x2F;cbarrick&#x2F;dotfiles</a>
评论 #39103570 未加载
yla92over 1 year ago
Recently, I moved off from oh-my-zsh after many users, to vanilla zsh with <a href="https:&#x2F;&#x2F;starship.rs" rel="nofollow">https:&#x2F;&#x2F;starship.rs</a>, mainly due to the loading speed (used <a href="https:&#x2F;&#x2F;github.com&#x2F;romkatv&#x2F;zsh-bench">https:&#x2F;&#x2F;github.com&#x2F;romkatv&#x2F;zsh-bench</a> to measure the speed).<p>Still wanting to try out fish and hopefully soon!
评论 #39102025 未加载
评论 #39115117 未加载
radimmover 1 year ago
All good until your ZSH gets heavyweight and slow. Started using fish and never looked back
评论 #39101755 未加载
评论 #39101801 未加载
评论 #39102365 未加载
评论 #39101561 未加载
评论 #39103440 未加载
评论 #39102045 未加载
评论 #39104813 未加载
评论 #39101574 未加载
Jackevansevoover 1 year ago
The defaults it ships out of the box makes the shell actually usable. Unsure I could ever go back to a regular bash&#x2F;zsh prompt.<p>A lot of people will tell you this is slow and you&#x27;ve got to use X,Y,Z instead. If you&#x27;re new, I&#x27;d strongly recommend just sticking with this, it&#x27;s much easier to configure.
enwover 1 year ago
The following goes a long way:<p><pre><code> setopt PROMPT_SUBST HISTFILE=~&#x2F;.zsh_history HISTSIZE=100000 SAVEHIST=100000 PROMPT=&#x27;%B%(?..%F{red}%?%f )%F{blue}%~ %F{green}%#%f%b &#x27; RPROMPT=&#x27;%B%F{red}$(git branch --show-current 2&gt; &#x2F;dev&#x2F;null)%f%b&#x27; </code></pre> And if you want autosuggestions:<p><pre><code> brew install zsh-autosuggestions </code></pre> Then add the following to your ~&#x2F;.zshrc:<p><pre><code> source &#x2F;opt&#x2F;homebrew&#x2F;share&#x2F;zsh-autosuggestions&#x2F;zsh-autosuggestions.zsh</code></pre>
评论 #39102629 未加载
msephtonover 1 year ago
PSA: simply installing this won&#x27;t get you many benefits until you read about what it can do and then make an effort to use those things in your workflow.
评论 #39101417 未加载
Zizizizzover 1 year ago
Zsh autosuggestions Zsh syntax highlighting Fzf-tab<p>Paired with zoxide and fzf for the zsh keyboard shortcuts are all I need to be very productive.<p>Starship.rs is very useful as well as a theme but pure and pl10k are also great.
评论 #39101511 未加载
eigenvalueover 1 year ago
I use and like omyzsh, but find it super annoying how it deals with updating. It either nags you constantly to update, or if you set it to &quot;auto,&quot; then it&#x27;s constantly spamming you about how it&#x27;s updating, and when you create a new shell session (say, in tmux), it causes significant lag before you can use the new shell and pollutes the console with tons of output. There has to be a better way, like some optional mode that just runs an update service in 3am silently using systemd.
wirrbelover 1 year ago
Grml zsh is all I need <a href="https:&#x2F;&#x2F;grml.org&#x2F;zsh&#x2F;" rel="nofollow">https:&#x2F;&#x2F;grml.org&#x2F;zsh&#x2F;</a>
评论 #39102350 未加载
sshineover 1 year ago
For comparison, here is my Zsh configuration in NixOS:<p><pre><code> { programs.starship = { enable = true; }; programs.zsh = { enable = true; enableCompletion = true; enableBashCompletion = true; enableGlobalCompInit = true; syntaxHighlighting.enable = true; syntaxHighlighting.highlighters = [ &quot;main&quot; &quot;brackets&quot; ]; histSize = 100000; # See `man zshoptions` for more details. setOptions = [ # Remove duplicates continuously from command history (preserve newest entry). &quot;HIST_IGNORE_DUPS&quot; # Instantly share command history between all active shells. &quot;SHARE_HISTORY&quot; # Alternative to: &quot;APPEND_HISTORY&quot;, &quot;INC_APPEND_HISTORY&quot;, # Disable ^S and ^Z for less accidental freezing. &quot;FLOW_CONTROL&quot; # Save timestamp and duration of each command in command history. &quot;EXTENDED_HISTORY&quot; ]; shellAliases = { rm = &quot;rm -iv&quot;; ls = &quot;ls -F --color=auto&quot;; gs = &quot;git status&quot;; gd = &quot;git diff&quot;; gdc = &quot;git diff --cached&quot;; gap = &quot;git add -p&quot;; gl = &quot;git log&quot;; gpr = &quot;git pull --rebase&quot;; }; interactiveShellInit = &#x27;&#x27; bindkey &#x27;^[[7~&#x27; beginning-of-line bindkey &#x27;^[[8~&#x27; end-of-line bindkey &#x27;^R&#x27; history-incremental-search-backward eval &quot;$(starship init zsh)&quot; &#x27;&#x27;; }; } </code></pre> My .zshrc used to be bigger, but I&#x27;ve slimmed it down to see what I actually use from it.
poochkoishi728over 1 year ago
One time, I was cowboy coding and ended up writing `grhh` (`git reset --hard`) and hit enter before I realized that it was a mistake.
评论 #39113226 未加载
KolenChover 1 year ago
Zprezto is a good alternative which is also faster. I eventually migrated to zim because of its minimalist approach.<p>I think starting from Oh My Zsh or zprezto can be a good choice. Once you get a feel of what zsh can accomplish, eventually probably you’ll one day find it too slow and&#x2F;or too complicated and then would switch to something like zim to only load the things you know is useful from then.
highmastdonover 1 year ago
Do yourself a favour and install fish-shell with starship.rs and call it a day. Make sure to put everything prompt related in a `if status --is-interactive` block. Blazing fast versatile fancy prompt and interactive human friendly shell. What does a man need more?
joejagover 1 year ago
I followed this advice and my shell went from 1530ms to 35ms startup time.<p>Main culprits were language switchers (nvm, jabba, pyenv). Which I moved to lazy loading.<p>If I drop the ohmyzsh plugins startup time is 11ms. But, I want some quality of life.<p>There&#x27;s a nice benchmarking command in the article if you want to test yours:<p>for i in $(seq 1 10); do &#x2F;usr&#x2F;bin&#x2F;time $SHELL -i -c exit; done
评论 #39110666 未加载
dogmayorover 1 year ago
I prefer sheldon[1] for the few plugins I use<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;rossmacarthur&#x2F;sheldon">https:&#x2F;&#x2F;github.com&#x2F;rossmacarthur&#x2F;sheldon</a>
MissTakeover 1 year ago
I use omz primarily with the Kubernetes addons - which are now integral to my existence.<p>Does fish support something similar? If so then I could be encouraged to give it a whirl.
h4ch1over 1 year ago
zsh autosuggestions has been pretty slow for me compared to fish out of the box, switched a year or so back and have been pretty happy. maybe something has changed now :thinking-emoji:<p>oh-my-fish is pretty much similar in capabilities and has a good assortment of themes.<p>All I used that came with zsh were git shortcuts like gc -m &quot;comment&quot;, gst for git status which i just recreated in my fish config.
firexcyover 1 year ago
These days I stick to a minimal profile for the default shell (zsh on macOS and bash on Linux), adding no further than some aliases. When I need more “friendly” interactive features I launch fish which is… friendly and interactive, and exit when I’m done. Thus I get the best of both worlds.
Charlie_32over 1 year ago
I&#x27;m a developer of 10 years, and use the command line for Git, Brew and a few other things, though I&#x27;m normally an IDE developer. I believe the CL is as powerful as everyone says, but what are some useful things I can use it for? I use Zsh on a Mac some of the time.
评论 #39101944 未加载
评论 #39101624 未加载
评论 #39101805 未加载
评论 #39101484 未加载
评论 #39101478 未加载
评论 #39101658 未加载
评论 #39101649 未加载
评论 #39101483 未加载
imdsmover 1 year ago
Been using it for years now, can&#x27;t fault it, but I don&#x27;t do too much with it
peaucover 1 year ago
I would actually recommend using fish with budspencer theme which is really great <a href="https:&#x2F;&#x2F;github.com&#x2F;oh-my-fish&#x2F;theme-budspencer">https:&#x2F;&#x2F;github.com&#x2F;oh-my-fish&#x2F;theme-budspencer</a>
flaxtonover 1 year ago
Loading time is not an issue for me. I run tmux so my sessions stay alive and performance is very quick. M2 MacBook Air with 16GB RAM, using Warp terminal. Using OMZ with Dracula Theme and mosh for remote servers.
andirkover 1 year ago
Am I the only one with almost nothing custom in my bash&#x2F;zsh?
评论 #39107202 未加载
评论 #39104469 未加载
评论 #39103069 未加载
ivanhoeover 1 year ago
OMZ and zsh are great in many ways, but I still miss my CTRL + W from the bash, deleting the whole word regardless of the chars...
评论 #39103024 未加载
评论 #39102197 未加载
alxndr13over 1 year ago
funny coincidence, just finished re-modding my zsh.<p>Removing omz, adding antidote and starship. feels (and measureably is) faster and snappier.
dsegoover 1 year ago
One neat alternative is ohmyposh.dev
评论 #39109412 未加载
评论 #39109046 未加载
nunezover 1 year ago
Note that most of ohmyzsh can be done in pure Bash
mbrumlowover 1 year ago
Just use fish.