Created
July 4, 2017 19:41
-
-
Save iacchus/aa6e0314c4d3cacd948475a344c27ac0 to your computer and use it in GitHub Desktop.
make tmux behave well in ssh (append to .bashrc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [[ -z "$TMUX" ]] && [ "$SSH_CONNECTION" != "" ]; then | |
tmux attach-session -t "$USER" || tmux new-session -s "$USER" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment