feat(zsh): create user zshrc if it doesn't exist

This commit is contained in:
George Rawlinson 2019-12-05 20:17:53 +13:00
parent 6157aa7c2c
commit 3dd89cd9bf
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

3
zshenv
View file

@ -9,4 +9,7 @@ export ZSYSDIR="/usr/share/zsh-grawlinson"
if [ ! -d "${ZDOTDIR}" ]; then mkdir -p "${ZDOTDIR}"; fi
if [ ! -d "${ZCACHEDIR}" ]; then mkdir -p "${ZCACHEDIR}"; fi
# create empty zshrc if it does not exist
if [ ! -e "${ZDOTDIR}/.zshrc" ]; then touch "${ZDOTDIR}/.zshrc"; fi
# vim: ft=zsh expandtab tabstop=2 shiftwidth=2