How to fix slow zsh shell startup

  Рет қаралды 3,116

Dane Harnett Devs

Dane Harnett Devs

Күн бұрын

My ZSH shell startup is super slow, it is getting frustrating opening a new shell to run some command, so let's try to fix it.
Also, what is the subscriber initiative?
Links from the video:
- My dotfiles: github.com/dan...
- Blog post: lakur.tech/202...
- Node Version Manager (nvm): github.com/nvm...
- Fast Node Manager (fnm): github.com/Sch...
Catch me live coding on Twitch at / daneharnett
Tweet at me at / daneharnett
Or please feel free to leave any comments or questions in the comments below :)
Other software engineers on KZbin:
- / @theprimeagen
- / @t3dotgg
- / @teej_dv
- / @cmgriffing
Also:
- / shufti247
--
Software engineer at @Atlassian
The opinions expressed here are my own and don't necessarily reflect those of my current, future or past employers.

Пікірлер: 24
@thraizz
@thraizz Жыл бұрын
Hey, thanks for linking my blog post! Cool video, great explanation 😺
@DaneHarnettDevs
@DaneHarnettDevs Жыл бұрын
Thank you for helping me speed up my shell 😊
@Reichstaubenminister
@Reichstaubenminister 10 ай бұрын
Who was the man who hijacked my left headphone speaker at the end? The brother of Michael MJD and FitMC?
@DaneHarnettDevs
@DaneHarnettDevs 10 ай бұрын
Was it Rick Murray - Head of Engineering?
@nathanbrennan4011
@nathanbrennan4011 Жыл бұрын
Nice optimisation. Need more of this in my life. ♥️👌
@DaneHarnettDevs
@DaneHarnettDevs Жыл бұрын
Yeah it was a big jump! I’ve spent a bit more time on it and it’s so much nicer now too
@RetroMMO
@RetroMMO Жыл бұрын
Welcome back to youtube
@DaneHarnettDevs
@DaneHarnettDevs Жыл бұрын
Thank you!
@tldyesterday
@tldyesterday 5 ай бұрын
You saved me man!! thanks a lot!
@DaneHarnettDevs
@DaneHarnettDevs 5 ай бұрын
Glad I could help!
@victorsneedsen
@victorsneedsen Жыл бұрын
What i did is that i downloaded the nvm plugin folder from "oh my zsh" then i added the line "zstyle ':omz:plugins:nvm' lazy yes" to enable lazy loading for the plugin and sourced the plugin (has to be after compinit) It doesn't even need use the "oh my zsh" 'framework'. I get 0.01s system time
@DaneHarnettDevs
@DaneHarnettDevs Жыл бұрын
Nice! That’s a good solution too
@diegoulloao
@diegoulloao 8 ай бұрын
zsh --interactive -c exit 0.42s user 0.53s system 5% cpu 15.970 total
@DaneHarnettDevs
@DaneHarnettDevs 8 ай бұрын
Nice!
@romanstingler435
@romanstingler435 Жыл бұрын
as a Linux user on a notebook with 0.09s to execute zsh I am laughing and wondering if you download zsh from git every time you open it (just an exaggeration)
@DaneHarnettDevs
@DaneHarnettDevs Жыл бұрын
Yeah it’s pretty crazy isn’t it! I’ve made further changes after this and have it faster again but not as fast as 0.09s yet. Do you have your config online so I can compare?
@taharlaaroussi7875
@taharlaaroussi7875 Жыл бұрын
Nice, thx
@DaneHarnettDevs
@DaneHarnettDevs Жыл бұрын
You’re welcome! 😊
@ryanaiden
@ryanaiden Жыл бұрын
That initial wasn't an exaggeration... I've seen and had longer load times because of eks and all the rest bundled in 1 terminal 😅
@DaneHarnettDevs
@DaneHarnettDevs Жыл бұрын
It’s painful isn’t it!
@ryanaiden
@ryanaiden Жыл бұрын
@@DaneHarnettDevs yea it sucks. one has to have separate envs/terminals if you want close to instant startups haha
@ditchcomfort
@ditchcomfort Жыл бұрын
Just to let you know all the $(brew - -prefix) also take some time. So perhaps consider using a full path instead. And, I have to be honest, even though yours isn’t the worst I’ve seen, Oh My Zsh isn’t the fastest/best framework to use either. You’re probably better of configuring something from scratch. And if you’re not using 10-15 plugins, you absolutely don’t need all the extra bloat, and people trying to sell you T-shirts 😀
@DaneHarnettDevs
@DaneHarnettDevs Жыл бұрын
Thanks! Yeah I’ve switched from OMZ to antidote now and made it much faster
Bash vs ZSH vs Fish: What's the Difference?
13:32
Eric Murphy
Рет қаралды 178 М.
Reports in Cypress and Cucumber
7:38
Dane Harnett Devs
Рет қаралды 3,4 М.
КТО ЛЮБИТ ГРИБЫ?? #shorts
00:24
Паша Осадчий
Рет қаралды 4,3 МЛН
zsh: Syntax Highlighting, vi-mode, Autocomplete, more
10:39
Luke Smith
Рет қаралды 314 М.
zoxide has forever improved the way I navigate in the terminal.
9:53
Dreams of Autonomy
Рет қаралды 454 М.
Switching To ZSH
28:13
HackerSploit
Рет қаралды 33 М.
Speed up Neovim startup by 25% with vim.loader
5:28
Greg Hurrell
Рет қаралды 2,5 М.
Which Terminals Do Pro Developers Use? My Top Picks.
13:16
John McBride
Рет қаралды 11 М.
Customizing Zsh
14:42
DevDungeon
Рет қаралды 10 М.
OpenBSD Desktops Are For Hackers Only
13:14
Mental Outlaw
Рет қаралды 199 М.
ZSH | A Better Shell
9:25
Chris Titus Tech
Рет қаралды 134 М.
Too lazy to configure ZSH? Just use this script...
12:26
Eric Murphy
Рет қаралды 16 М.