Skip to content

Instantly share code, notes, and snippets.

Created Sep 4, 2013
What would you like to do?
tmuxでセッションの有無を判別して起動するスクリプト ref:
tmux ls > /dev/null
if [ $? -eq 1 -a -z "$TMUX" ]; then
exec tmux
elif [ -z "$TMUX" ] ; then
exec tmux attach
echo "sessions should be nested with care."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment