]>
Commit | Line | Data |
---|---|---|
f4a5f003 | 1 | #XXX: ensure we override /etc/profile, gets loaded after .zshenv |
a568f7fa | 2 | source ~/.zshenv |
3 | ||
cbfa782e | 4 | t="${TMPDIR:-/tmp}/home-$LOGNAME" |
a568f7fa | 5 | h="$HOME/tmp" |
6 | if [[ ! -e "$t" ]] { | |
7 | mkdir -m 700 "$t" > /dev/null 2>&1 | |
cbfa782e | 8 | #TODO: check if dir exists after mkdir |
a568f7fa | 9 | } |
10 | #allow opaque entries to override | |
11 | if [[ ! -e "$h" ]] { | |
12 | ln -sf "$t" "$h" > /dev/null 2>&1 | |
13 | } | |
a8f1ccaf | 14 | unset t |
15 | unset h |