2021-07-08 16:47:22 +00:00
|
|
|
# set environment variables to conform with XDG base directory specification
|
2019-10-31 23:18:00 +00:00
|
|
|
export ZDOTDIR="${HOME}/.config/zsh"
|
|
|
|
export ZCACHEDIR="${HOME}/.cache/zsh"
|
2021-07-08 16:47:22 +00:00
|
|
|
|
|
|
|
# set framework location
|
2019-10-31 23:18:00 +00:00
|
|
|
export ZSYSDIR="/usr/share/zsh-grawlinson"
|
|
|
|
|
|
|
|
# create missing folders
|
|
|
|
if [ ! -d "${ZDOTDIR}" ]; then mkdir -p "${ZDOTDIR}"; fi
|
|
|
|
if [ ! -d "${ZCACHEDIR}" ]; then mkdir -p "${ZCACHEDIR}"; fi
|
|
|
|
|
2019-12-05 07:17:53 +00:00
|
|
|
# create empty zshrc if it does not exist
|
|
|
|
if [ ! -e "${ZDOTDIR}/.zshrc" ]; then touch "${ZDOTDIR}/.zshrc"; fi
|
|
|
|
|
2019-10-31 23:18:00 +00:00
|
|
|
# vim: ft=zsh expandtab tabstop=2 shiftwidth=2
|