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 session with named the same as your username already exists, then attach to it, otherwise create it
There are 5 alternatives - vote for the best!
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)
Also detaches session if attached from somewhere else.
If you can do better, submit your command here.
You must be signed in to comment.