mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-24 04:21:31 +01:00
16 lines
378 B
Plaintext
16 lines
378 B
Plaintext
|
# Make sure SSH_AUTH_sock is symlinked
|
||
|
if test "$SSH_AUTH_SOCK" ; then
|
||
|
ln -sf $SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock
|
||
|
fi
|
||
|
|
||
|
#_tmux_sourced=1 exec tmux
|
||
|
if [[ -z $TMUX ]] && [[ -n $SSH_TTY ]]; then
|
||
|
session=tmux
|
||
|
|
||
|
if tmux has-session -t "$session" 2>/dev/null; then
|
||
|
exec tmux attach-session -t "$session"
|
||
|
else
|
||
|
exec tmux new-session -s "$session"
|
||
|
fi
|
||
|
fi
|