Closed redeemefy closed 4 years ago
You can just source the file you created in your ~/.zshrc
.
So in your case: source ~/.oh-my-zsh/custom/pl9k.zsh
.
Make sure to set (or source) every variable before sourcing the theme file itself since not every variable is picked up otherwise.
Since you are using omz you can also set ZSH_THEME=powerlevel9k/powerlevel9k
instead of source /Users/gdiaz/.oh-my-zsh/custom/themes/powerlevel9k/powerlevel9k.zsh-theme
. In this case make sure you source your variables before sourcing oh-my-zsh.sh
.
Hi all,
I would like to know if it is possible to add custom setting in a different file instead of
.zshrc
. I do all my custom zsh related things in files in~/.oh-my-zsh/custom/custom.zsh
. I created~/.oh-my-zsh/custom/pl9k.zsh
file and add the configuration bellow, but doesn't work. I had to add that code to the~/.zshrc
to make it work. It is a way I can move that code to a custom file or has to be in~/.zshrc
for now.Is there plans to make this work?
Thanks!