dotfiles
dotfiles copied to clipboard
maybe add this for tmux
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]] && [[ -x "$(command -v tmux)" ]]; then
echo "-> new SSH session, launching tmux"
tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux
echo "-> tmux detached, closing ssh session"
exit
fi