I just set up zsh
together with oh-my-zsh
. But there's a bit of strange behavior that I cannot understand. If I restart Terminal (or iTerm 2––the behavior is the same in either) the theme specified in ~/.zshrc
is not loaded. I need to do source ~/.zshrc
for it to happen. If I echo $ZSH_THEME
I get the theme I specified in ~/.zshrc
. (And if I add echo "I'm loading it."
to the bottom of ~/.zshrc
, for example, I get the expected message upon opening a new window, etc.)
This question is very similar to mine. But none of the suggestions there appear relevant: the problem there was that some bits of ~/.zshrc
were not being loaded, whereas in my case it seems they are being 'read' but not 'loaded' if that's a thing.
In case this is relevant: I do not have any files named .zprofile
or .profile
in my home directory.
Another bit of relevant information. If I change the value of ZSH_THEME
in my .zshrc
file, I need to source it twice in order to activate the new theme.
You add a folder with the custom plugin in your plugin directory and you are good to go. Oh-My-ZSH will by default be able to source your plugins from there as well, but it's really up to you. You can add your custom plugins to the general plugin directory or your custom plugin directory. It's only personal preference.
For Arch-linux users:
I had to un-install the grml-zsh-config package and reboot:
yay -Rncs grml-zsh-config
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With