summaryrefslogtreecommitdiff
path: root/roles/tools/files
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-28 10:13:27 +0100
committerIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-28 20:23:16 +0100
commitd4357f69e1ccbb1c277f8978ea6f4a368b3ee3c2 (patch)
tree4062fb00ac2419feae4c71de1228a76d2badb67f /roles/tools/files
parent34d5d6fc77fd440963b1e0cfc099bc7291c5eeb0 (diff)
downloadAnsible-d4357f69e1ccbb1c277f8978ea6f4a368b3ee3c2.tar.gz
Ansible-d4357f69e1ccbb1c277f8978ea6f4a368b3ee3c2.tar.zst
Ansible-d4357f69e1ccbb1c277f8978ea6f4a368b3ee3c2.zip
ssh and tmux configuration fixes
Diffstat (limited to 'roles/tools/files')
-rw-r--r--roles/tools/files/ssh/rc11
1 files changed, 6 insertions, 5 deletions
diff --git a/roles/tools/files/ssh/rc b/roles/tools/files/ssh/rc
index 35b7d34..32d1bd4 100644
--- a/roles/tools/files/ssh/rc
+++ b/roles/tools/files/ssh/rc
@@ -1,8 +1,9 @@
1#!/bin/bash 1#!/bin/bash
2 2
3if [ -n "$DISPLAY" ]; then 3if read proto cookie && [ -n "$DISPLAY" ]; then
4 export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" 4 if [ `echo $DISPLAY | cut -c1-10` = "localhost:" ]; then
5 read protocol cookie 5 echo add unix:`echo $DISPLAY | cut -c11-` $proto $cookie
6 xauth remove $DISPLAY 6 else
7 xauth add $DISPLAY "$protocol" "$cookie" 7 echo add $DISPLAY "$protocol" "$cookie"
8 fi | xauth -q -
8fi 9fi