Last active
November 28, 2018 13:12
-
-
Save jpillora/bc03f00d97e0dce69763205085ceb7d8 to your computer and use it in GitHub Desktop.
tmux helper
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
| #tmux helper | |
| echo '#!/bin/bash | |
| NAME="${1}" | |
| if [[ "$NAME" = "" ]]; then | |
| tmux ls | |
| else | |
| tmux attach-session -t "$NAME" || tmux new-session -s "$NAME" | |
| fi' > /usr/local/bin/tm && | |
| chmod +x /usr/local/bin/tm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment