]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blame - roles/tools/files/ssh/rc
ssh and tmux configuration fixes
[perso/Immae/Config/Ansible.git] / roles / tools / files / ssh / rc
CommitLineData
b4693a8e
IB
1#!/bin/bash
2
d4357f69
IB
3if read proto cookie && [ -n "$DISPLAY" ]; then
4 if [ `echo $DISPLAY | cut -c1-10` = "localhost:" ]; then
5 echo add unix:`echo $DISPLAY | cut -c11-` $proto $cookie
6 else
7 echo add $DISPLAY "$protocol" "$cookie"
8 fi | xauth -q -
b4693a8e 9fi