mirror of https://github.com/balkian/dotfiles.git
Added SSH_AUTH_SOCKET fix
parent
115a9e3118
commit
70de8170b0
@ -1 +1 @@
|
||||
Subproject commit 2c3489a75014f80c87ee6c6ae6ab62251dd684b0
|
||||
Subproject commit 9de171c0217bf9a50b9a091d56a13cf27b1fbb82
|
@ -0,0 +1,16 @@
|
||||
# TMUX
|
||||
# if [[ -z "$KONSOLE_DBUS_SERVICE" & `which tmux` ]]; then
|
||||
# if no session is started, start a new session
|
||||
if [[ -n $(which tmux) ]]; then
|
||||
stty -ixon
|
||||
if [ ! -z "$SSH_AUTH_SOCK" -a "$SSH_AUTH_SOCK" != "$HOME/.ssh/ssh_auth_sock" ] ; then
|
||||
unlink "$HOME/.ssh/ssh_auth_sock" 2>/dev/null
|
||||
ln -s "$SSH_AUTH_SOCK" "$HOME/.ssh/ssh_auth_sock"
|
||||
export SSH_AUTH_SOCK="$HOME/.ssh/ssh_auth_sock"
|
||||
fi
|
||||
test -z ${TMUX} && tmux attach
|
||||
# when quitting tmux, try to attach
|
||||
if [[ -z ${TMUX} ]]; then
|
||||
exit;
|
||||
fi
|
||||
fi
|
Loading…
Reference in New Issue