Oh My Zsh Download Mac

First look at the renderings

% cd Downloads% unzip Hyper-3.0.2-mac.zip Install oh-my-zsh. Oh My Zsh is a delightful, open source, community-driven framework for managing your Zsh configuration. It comes bundled with.

Iterm2 download and install

The official website provides two ways to download. The first way is used here. After installation, there is a.oh-my-zshcatalog

Update Oh My Zsh

Update oh my zsh

Install powerline font set

Modify font
Preferences->Profiles->Text->Font, selectSource Code Pro for Powerline

First, clone iterm2 color schemes. There are many color schemes to choose from here

Import color schemes,
Preferences->Profiles->Colors->Color Presets->import..., under iterm2 color schemes / schemes /Dark+, select the scheme after import

Please refer to Zsh syntax highlighting website for details

Enable plug-ins

I use the default theme hererobbyrussell, for details, see the theme configuration of oh my Zsh official website. I think many people recommend itagnosterTheme, here we can try it

This terminal beautification is over!

Have you ever wondered why coders who are great at Linux have their Terminals looking beautiful with color-coded text?

Why do they have an awesome terminal with shortened commands and auto-complete features? I wanted a hero-status terminal and maybe you do too. The secret is using different type of Unix/Linux shell, know as the Z shell or [zsh].

OSX Terminal uses [bash] shell by default, and it’s not the most attractive Linux experience. White background and black text and an unfriendly looking prompt, maybe it’s actually intended to drive away non-coders.

But if you are a developing coder and ready to Level Up your Mac Terminal experience, then install oh–my–zsh in your OSX terminal.

Installed and amped about this new tool, next I started installing homebrew packages

and soon I had 15 packages on my new install. Feeling like a Linux rising star, I showed my hidden files and opened /.oh-my-zsh/themes and tested them all before settling on [steeef.zsh-theme]. I liked the colors and I was feeling good.

Then I started using my new Terminal with Z shell and oh-my-zsh, it’s sooo beautiful with it’s black background and colored text… and then I realized it was SUPER SLOW. Like 10 secs to load Terminal and 10 seconds between prompts. How could anyone deal with this slowness? How can this only be me on my beautiful zsh Mac Terminal with super slow loads and huge lag time between prompts? This was painfully slow. I couldn’t be the only one… so I started looking around for clues.

I uncovered this was in the oh-my-zsh, since bash was fast, and it was time for debugging. I googled to debug oh-my-zsh slow. I tried all the processes on that page. I commented out NVM, I changed history size.

Nothing changed. Still huge lag times on Terminal load and between prompts.

Another profiling method to find slow plugins/themes/functions is zsh/zprof. Just add

to the top of your .zshrc and then restart Terminal and run env ZSH_PROF= zsh -ic zprof.

This outputs a great report on the status of the zsh packages and their load time. With this report, I see compinit and compdump at the top of the report.
So I think it must be the brew packages. So I uninstall the packages.

Still no change. Still a super slow OSX Terminal with zsh and oh-my-zsh. I’m starting to pull on my hair now. What is the reason for this slowness? I try the next option,

Mac

This fails on load… multiple times. Seems like the package link is 404 down. I continue forward with the next few options. It’s not the zsh-syntax-highlighting. It’s not the symlinks or the AUTOMOUNTD_VERBOSE=TRUE.

So I keep searching Google. I clean the ASL logs (as described here) helps to reduce the startup time. This does very little, like a fraction of a second. I delete the complete history.zsh file. Still nothing.

Then I finally stumble upon a lead, after hours of debugging this. Large repositories can create long wait times for git.
What? This is one of the core reasons I’m using a Linux Terminal with zsh, so I can use superpower git…

So I find this in the .zshrc file.

I also try commenting this in the .zshrc file:
# plugins=(git)

Nothing yet… I open Activity Monitor on Mac and watch the CPU tab so I can see what is happening. During Terminal open and between prompts, a git process is appearing while OSX Terminal is lagging super slow. Is this happening for you?

Mac Zsh Oh My Zsh

Finally! Now we have a measurable problem and can create a solution. So I wander around trying various solutions for a while before thinking about my ZSH_THEME='steeef'. So I open this theme… and it’s full of git calls and git checks. Time to write my own iguchi.zsh-theme.

iguchi.zsh-theme - Create this file in your /.oh-my-zsh/themes folder.
and here are the contents of this new theme.

YESSS! Terminal is fixed and now works fast. Now my OSX Terminal with zsh and oh-my-zsh no longer slow. Now it is super blazing fast. Less than 1 sec to open Terminal and see a beautiful prompt.

Now I add my brew packages back into the mix.

And since I’m still training to be a Linux Superhero, I add zsh-autosuggestions

  1. Clone this repository somewhere on your machine. This guide will assume ~/.zsh/zsh-autosuggestions.
  2. Add the following to your .zshrc:
  3. Now refresh your updated .zshrc in Terminal:

And that’s it. Super fast OSX Terminal with zsh and oh-my-zsh. Time to be a Linux hero. Time for practice. Lots of practice.

Oh My Zsh Download Mac

Oh My Zsh Install Mac

I intend for this post to save you slow zsh Mac OSX Terminal users many hours of time and suffering.

Oh My Zsh On Mac

I wonder if oh-my-zsh is going to fix this slow OSX Terminal with oh-my-zsh with some sort of theme standardization and theme warning label.
Leave your comments below.