Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Autostart tmux session when logging in via SSH
cat << 'EOF' > ~/.bash_profile
if [ -z "$TMUX" ]; then
tmux attach -t default || tmux new -s default
fi
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment