]> arthur.barton.de Git - OhMyZshExtensions.git/blob - plugins/1_local/1_local.plugin.zsh
Remove timestamps from files, we are using Git
[OhMyZshExtensions.git] / plugins / 1_local / 1_local.plugin.zsh
1 # 1_local.plugin.zsh
2
3 [ -d "/usr/local/home" -a ! -d "/usr/local/home/$LOGNAME" ] \
4         && mkdir "/usr/local/home/$LOGNAME" >/dev/null 2>&1
5
6 [ -w "/usr/local/home/$LOGNAME" ] \
7         && export LOCAL_HOME="/usr/local/home/$LOGNAME" \
8         || export LOCAL_HOME="$HOME"
9
10 # Setup XDG cache directory
11 export XDG_CACHE_HOME="$LOCAL_HOME/.cache"
12
13 # Update PATH to include directories inside of the $HOME directory
14 typeset -U path
15 for d in ~/bin ~/sbin ~/Applications; do
16         [ -d "$d" ] && path[1,0]="$d"
17 done