Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
add this file to ~/.bashrc and when ever you will do a ssh connection / open terminal, a tmux session will automatically created/attached
if (`tmux attach -t backup`) ; then
echo "tmux attach -t backup"
else
echo "tmux new -s backup"
`tmux new -s backup`
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment