zsh-grawlinson/zshenv

16 lines
524 B
Text
Raw Permalink Normal View History

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
# 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