## create tmp link
t=${TMPDIR:-/tmp}/home-$LOGNAME
- h=$HOME/tmp
if [[ ! -e $t ]] {
mkdir -m 700 $t >/dev/null 2>&1
# TODO: check if dir exists after mkdir
}
# allow opaque entries to override link creation
- if [[ ! -e $h ]] {
- ln -sf $t $h >/dev/null 2>&1
+ if [[ ! -e $XDG_RUNTIME_DIR ]] {
+ ln -sf $t $XDG_RUNTIME_DIR >/dev/null 2>&1
}
- unset t h
+ unset t
## ssh agents
# NOTE: preferred order of agents to check: okcagent, gnupg, openssh