diff --git a/dot_zshrc b/dot_zshrc.tmpl similarity index 94% rename from dot_zshrc rename to dot_zshrc.tmpl index d91bc10..ac9af55 100644 --- a/dot_zshrc +++ b/dot_zshrc.tmpl @@ -12,7 +12,12 @@ for file in ~/.dotfiles/zsh/custom/*.zsh; do done # Path to your oh-my-zsh installation. +# WSL2 would be Ubuntu, ohmyzsh is installed in userfolder +{{ if or (contains "WSL2" .chezmoi.kernel.osrelease) (contains "microsoft-standard" .chezmoi.kernel.osrelease) }} +ZSH=~/.oh-my-zsh/ +{{ else }} ZSH=/usr/share/oh-my-zsh/ +{{ end }} # Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case,