Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

oh-my-zsh config file not loading

Tags:

zsh

zshrc

I am trying to get ZSH config working correctly on Mac OSX. I installed it using curl: curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh. Then I modified my zshrc file to fit my needs. It works only after I run source ~/.zshrc. But then if I come back and open a new tab or new terminal I have to do source ~/.zshrc to get the config settings to work again. Has anybody ran into this issue? I believe there is a way to make it so I don't have to do source ~/.zshrc with every new tab.

like image 382
wallerjake Avatar asked Mar 28 '13 12:03

wallerjake


People also ask

How do I open zsh config?

Enter your home directory and open the . zshrc file in your editor of choice. This file is run whenever you start zsh and is the place where any custom configuration lives. Note: file names that begin with a dot are hidden by default on most operating systems, so you'll need to make it visible before you can edit it.

Where is zsh config file on Mac?

zshrc file on a Mac? The . zshrc file will be located in the users home directory, or ~/, and this user . zshrc file is where you'd place customizations to the z shell.

How do I open a Zshrc file on a Mac?

Or else you can use open -t . zshrc command to open ~/. zshrc file from your general TextEdit on Mac OS.


1 Answers

I figured this out. It was due to my config file. The part of the zsh config that wasn't loading needed to be moved down after the plugins load. After moving that it all worked as expected.

like image 186
wallerjake Avatar answered Sep 29 '22 05:09

wallerjake