diff options
author | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-28 10:13:27 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-28 20:23:16 +0100 |
commit | d4357f69e1ccbb1c277f8978ea6f4a368b3ee3c2 (patch) | |
tree | 4062fb00ac2419feae4c71de1228a76d2badb67f /roles/tools/files | |
parent | 34d5d6fc77fd440963b1e0cfc099bc7291c5eeb0 (diff) | |
download | Ansible-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/rc | 11 |
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 | ||
3 | if [ -n "$DISPLAY" ]; then | 3 | if 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 - | ||
8 | fi | 9 | fi |