Skip to content

Instantly share code, notes, and snippets.

@namutaka
Created January 30, 2014 01:34
Show Gist options
  • Save namutaka/8701050 to your computer and use it in GitHub Desktop.
Save namutaka/8701050 to your computer and use it in GitHub Desktop.
tmux attash command
function tm {
tmux has -t main 2> /dev/null
if [ "$?" -eq 0 ]; then
exec tmux attach -t main
else
exec tmux new -s main
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment