commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
If a tmux session is already running attach it, otherwise create a new one. Useful if you often forget about running tmuxes (or just don't care)
There are 2 alternatives - vote for the best!
Also detaches session if attached from somewhere else.
If a session with named the same as your username already exists, then attach to it, otherwise create it
If you can do better, submit your command here.
You must be signed in to comment.