summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-02-07 14:38:51 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-02-07 14:41:28 -0500
commita394973ffedc02a3ea622b353fecbd078b8c0f8e (patch)
treed72aa14d25b7f513ec6530aef64fb98cdcf8a6ea
parentfa68e4a8bab90a575766c54a8ebca086d32e106c (diff)
Have the link to XDG_RUNTIME_DIR be at ~/.runtime/HOSTNAME
-rw-r--r--.config/login.d/90_dot-runtime.sh5
-rw-r--r--.config/ssh/config2
2 files changed, 5 insertions, 2 deletions
diff --git a/.config/login.d/90_dot-runtime.sh b/.config/login.d/90_dot-runtime.sh
index d597cc7..87d30ec 100644
--- a/.config/login.d/90_dot-runtime.sh
+++ b/.config/login.d/90_dot-runtime.sh
@@ -1 +1,4 @@
-ln -sfT -- "$XDG_RUNTIME_DIR" ~/.runtime
+# This is really only needed for ssh ControlPath; as I don't have a
+# way to communicate XD
+mkdir -p -- ~/.runtime
+ln -sfT -- "$XDG_RUNTIME_DIR" ~/.runtime/"$HOSTNAME"
diff --git a/.config/ssh/config b/.config/ssh/config
index 00a84b8..07240a6 100644
--- a/.config/ssh/config
+++ b/.config/ssh/config
@@ -1,7 +1,7 @@
Host *
Protocol 2
ControlMaster auto
- ControlPath ~/.runtime/ssh-%r@%h:%p
+ ControlPath ~/.runtime/%l/ssh-%r@%h:%p
Compression yes
# Purdue ###################################################