Last active
July 31, 2018 15:55
-
-
Save droustchev/af748e1e68a1ae8df9a77467c111fcb5 to your computer and use it in GitHub Desktop.
List & attach to active tmux sessions, attach to new `default` session if no previous sessions exist
This file contains 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
tmux ls && read tmux_session && tmux attach -t ${tmux_session:-default} || tmux new -s ${tmux_session:-default} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment