Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set custom zsh theme #644

Open
jaimelr opened this issue Oct 2, 2019 · 2 comments
Open

Unable to set custom zsh theme #644

jaimelr opened this issue Oct 2, 2019 · 2 comments

Comments

@jaimelr
Copy link

jaimelr commented Oct 2, 2019

Hi! I'm trying to change the default Oh My Zsh theme, I created my dotfiles-local/zshrc.local and added the ZSH_THEME="my_theme_name" but it is not loading.

Do you know if there's some step I'm missing? I added the custom theme as suggested by the Oh My Zsh documentation .

@PaulRBerg
Copy link

Doesn't look Oh My Zsh can be used with this repo, as per @geoffharcourt's comment left here.

@geoffharcourt
Copy link
Collaborator

oh-my-zsh does a lot and supporting it is outside the scope of what we cans support. I'd check if your local zshrc.local is symlinked and after that I'd look into load order to see if that's the issue:

dotfiles/zshrc

Lines 8 to 38 in 42a313b

_load_settings() {
_dir="$1"
if [ -d "$_dir" ]; then
if [ -d "$_dir/pre" ]; then
for config in "$_dir"/pre/**/*~*.zwc(N-.); do
. $config
done
fi
for config in "$_dir"/**/*(N-.); do
case "$config" in
"$_dir"/(pre|post)/*|*.zwc)
:
;;
*)
. $config
;;
esac
done
if [ -d "$_dir/post" ]; then
for config in "$_dir"/post/**/*~*.zwc(N-.); do
. $config
done
fi
fi
}
_load_settings "$HOME/.zsh/configs"
# Local config
[[ -f ~/.zshrc.local ]] && source ~/.zshrc.local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants