zsh-config | my zsh configuration files | Command Line Interface library
kandi X-RAY | zsh-config Summary
kandi X-RAY | zsh-config Summary
My zsh configuration files. Should be reusable.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of zsh-config
zsh-config Key Features
zsh-config Examples and Code Snippets
Community Discussions
Trending Discussions on zsh-config
QUESTION
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.
ANSWER
Answered 2017-Apr-14 at 15:10Posting here in case it helps others. The problem was that I was loading the theme after source $ZSH/oh-my-zsh.sh
, so clearly oh-my-zsh
wasn't loading it. (The instructions in the .zshrc
template generated by oh-my-zsh
are a little confusing. On a quick read they suggest that themes should be loaded below the User configuration
line.)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install zsh-config
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page