Skip to content

Commit b2b24fb

Browse files
author
Pierre GIRAUD
committed
1 parent 6d5fb66 commit b2b24fb

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.bashrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,10 @@ PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[0
4646
GIT_PS1_SHOWDIRTYSTATE=1
4747
GIT_PS1_SHOWSTASHSTATE=1
4848
GIT_PS1_SHOWUNTRACKEDFILES=1
49+
50+
# ensure $SSH_AUTH_SOCK is available at /tmp/ssh-agent-$USER-screen
51+
if test $SSH_AUTH_SOCK && [ $SSH_AUTH_SOCK != "/tmp/ssh-agent-$USER-screen" ]
52+
then
53+
rm -f /tmp/ssh-agent-$USER-screen
54+
ln -sf "$SSH_AUTH_SOCK" "/tmp/ssh-agent-$USER-screen"
55+
fi

.screenrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ attrcolor b ".I"
2121
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
2222
# erase background with current bg color
2323
defbce "on"
24+
25+
setenv SSH_AUTH_SOCK "/tmp/ssh-agent-$USER-screen"

0 commit comments

Comments
 (0)