Migrate From Oh-my-zsh to Prezto
21–30 of 32 posts
Re: Migrate From Oh-my-zsh to Prezto
#22I have no idea what is happening to cause this, but the performance difference is unmistakable.
Re: Migrate From Oh-my-zsh to Prezto
#23Why not just contribute the optimisations back to ohmyzsh? This was made to be a drop in replacement anyway.
If I remember correctly zprezto started as a huge pull request to oh-my-zsh that the author rejected. You can probably find it in the closed issues of oh-my-zsh.
Re: Migrate From Oh-my-zsh to Prezto
#24I'm still pretty fond of fish myself, mainly for the sane scripting. Wondering if it might be worth switching to zsh for the extra plugins and community support, though.
I'm also interested in making bash tab completion behave a close as possible to zsh, just for those servers where installing zsh is a hassle. Never found a way. It's always slightly different, and thus very annoying.
Re: Migrate From Oh-my-zsh to Prezto
#25Something I noticed after migrating to oh-my-zsh while still on a spinning drive - if you're on a mac and clear out your system logfiles (rm /private/var/log/asl/*.asl), prompts begin to appear almost instantly even with ZSH. I have no idea what is happening to cause this, but the performance difference is unmistakable.
Re: Migrate From Oh-my-zsh to Prezto
#26Something I noticed after migrating to oh-my-zsh while still on a spinning drive - if you're on a mac and clear out your system logfiles (rm /private/var/log/asl/*.asl), prompts begin to appear almost instantly even with ZSH. I have no idea what is happening to cause this, but the performance difference is unmistakable.
huh, can confirm prompts are appearing faster. what the hell is this?
Here's an article where they got rather excessive (84GB): http://forums.macrumors.com/showthread.php?t=641936
You can look at them if you want using: syslog -f | less
I should time the init and print a suggestion to delete the files if it goes over a threshold.
Re: Migrate From Oh-my-zsh to Prezto
#27[1] https://github.com/jwhitley/zshrc/blob/master/.zshrc#L18
and https://github.com/jwhitley/zshrc/blob/master/.zshrc#L151
Re: Migrate From Oh-my-zsh to Prezto
#28To the larger issue of "my shell is slow", it's very helpful to profile it. I keep some standard startup profiling code[1] in my .zshrc that I enable when I need to profile things. In my experience, this virtually always identifies a very specific culprit for performance problems. [1] https://github.com/jwhitley/zshrc/blob/master/.zshrc#L18 and https://github.com/jwhitley/zshrc/blob/master/.zshrc#L151
Re: Migrate From Oh-my-zsh to Prezto
#29Earlier quoted context omitted.
If I remember correctly zprezto started as a huge pull request to oh-my-zsh that the author rejected. You can probably find it in the closed issues of oh-my-zsh.
Here it is. https://github.com/robbyrussell/oh-my-zsh/issues/377 (tl;dr seven-month fork that fixed over 100 issues)
Thus the split between the code bases.
Re: Migrate From Oh-my-zsh to Prezto
#30Earlier quoted context omitted.
huh, can confirm prompts are appearing faster. what the hell is this?
I forgot I did this about a year ago. I just did it again now and terminal launches instantly. I'm not sure when in the process it gets hung up, but these are Apple System Logs. Mine didn't look too bad; less than a hundred files taking less than 20mb or so. Here's an article where they got rather excessive (84GB): http://forums.macrumors.com/showthread.php?t=641936 You can look at them if you want using: syslog -f |…