537f294eadf3b362f163b8a3048bf7a79bb6781c
[OhMyZshExtensions.git] / plugins / 1_local / 1_local.plugin.zsh
1 # 1_local.plugin.zsh
2 # 2015-03-27, alex@barton.de
3
4 [ -d "/usr/local/home" -a ! -d "/usr/local/home/$LOGNAME" ] \
5         && mkdir "/usr/local/home/$LOGNAME" >/dev/null 2>&1
6
7 [ -w "/usr/local/home/$LOGNAME" ] \
8         && export LOCAL_HOME="/usr/local/home/$LOGNAME" \
9         || export LOCAL_HOME="$HOME"
10
11 # Setup XDG cache directory
12 export XDG_CACHE_HOME="$LOCAL_HOME/.cache"