summaryrefslogtreecommitdiff
path: root/.config/login.d/90_dot-runtime.sh
blob: cb0b7f2169366f7daec7fbd62c412922007ee37c (plain)
1
2
3
4
5
6
7
8
# This is really only needed for ssh ControlPath; as I don't have a
# way to communicate XDG_RUNTIME_DIR to it otherwise.
mkdir -p -- ~/.runtime
if [ -n "$XDG_RUNTIME_DIR" ]; then
	ln -sfT -- "$XDG_RUNTIME_DIR" ~/.runtime/"$HOSTNAME"
else
	ln -sfT -- /tmp ~/.runtime/"$HOSTNAME"
fi