From 268562da25eaf6cd3558a8dfebb8ad22780206a2 Mon Sep 17 00:00:00 2001 From: Meutel Date: Wed, 27 Jul 2016 09:36:19 +0200 Subject: [PATCH] Configuration forwardinf agent SSH pour tmux --- _bashrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_bashrc b/_bashrc index c81b73c..37ddde6 100644 --- a/_bashrc +++ b/_bashrc @@ -121,3 +121,9 @@ if [ -e /usr/local/share/git-core/contrib/completion/git-prompt.sh ] || [ -e /us export GIT_PS1_SHOWCOLORHINTS=1 export PROMPT_COMMAND='__git_ps1 "\[\033[1;31m\]>> \[\033[01;37m\](\[\033[0;37m\]\u@\[\033[0;32m\]\h\[\033[01;37m\]) \[\033[01;34m\]\w\[\033[00m\]" "\n\[\033[1;31m\]>>\[\033[0;37m\] "' fi + +# Tmux + ssh agent forwarding +if [ -S "$SSH_AUTH_SOCK" ] && [ ! -h "$SSH_AUTH_SOCK" ]; then + ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock +fi +export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock