6 lines
203 B
Bash
6 lines
203 B
Bash
# 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
|