]> arthur.barton.de Git - ax-zsh.git/blob - core/30_env/30_env.zprofile
New "30_env" core plugin
[ax-zsh.git] / core / 30_env / 30_env.zprofile
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # 30_env.zprofile: Setup environment
3
4 # Setup XDG cache directory
5 [[ -z "$XDG_CACHE_HOME" ]] && XDG_CACHE_HOME="$LOCAL_HOME/.cache"
6 export XDG_CACHE_HOME
7 mkdir -p "$XDG_CACHE_HOME"
8
9 # Setup XDG runtime directory
10 [[ -z "$XDG_RUNTIME_DIR" ]] && XDG_RUNTIME_DIR="${TMPDIR:-/tmp/${UID}-runtime-dir}"
11 export XDG_RUNTIME_DIR
12 mkdir -p "$XDG_CACHE_HOME"
13
14 # Setup ZSH cache directory
15 [[ -z "$ZSH_CACHE_DIR" ]] && ZSH_CACHE_DIR="$XDG_CACHE_HOME/zsh"
16 export ZSH_CACHE_DIR
17 mkdir -p "$ZSH_CACHE_DIR"