Changed .zshrc to a template file. Now supports WSL2

This commit is contained in:
Joachim Nielandt 2021-03-12 16:01:16 +01:00
parent f25a84d4e3
commit 358b4192f7

View File

@ -12,7 +12,12 @@ for file in ~/.dotfiles/zsh/custom/*.zsh; do
done done
# Path to your oh-my-zsh installation. # Path to your oh-my-zsh installation.
# WSL2 would be Ubuntu, ohmyzsh is installed in userfolder
{{ if (contains "WSL2" .chezmoi.kernel.osrelease) }}
ZSH=~/.oh-my-zsh/
{{ else }}
ZSH=/usr/share/oh-my-zsh/ ZSH=/usr/share/oh-my-zsh/
{{ end }}
# Set name of the theme to load --- if set to "random", it will # 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, # load a random theme each time oh-my-zsh is loaded, in which case,