6 lines
203 B
Plaintext
6 lines
203 B
Plaintext
|
# Start or reattach a tmux session when a ssh connection is established
|
||
|
if [[ -n "${SSH_CONNECTION}" ]] && [[ "${TERM}" != "tmux-256color" ]]; then
|
||
|
tmux attach-session -d || tmux new-session
|
||
|
exit
|
||
|
fi
|