Last active
August 29, 2015 14:21
-
-
Save wjimenez5271/0ec559889dd87d95de32 to your computer and use it in GitHub Desktop.
check_tmux_session.sh
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 ! { [ "$TERM" = "screen" ] && [ -n "$TMUX" ]; } then | |
| sessions="$(tmux list-sessions 2> /dev/null)" | |
| if [ $? -eq 0 ] | |
| then | |
| echo "------------- you have open tmux sessions --------------" | |
| echo "$sessions" | |
| echo "--------------------------------------------------------" | |
| fi | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment