I've attached a patch that allows people to specify a command to neww
and related commands without having to quote the command. Using "--"
is only needed if the command you want to run happens to start with a
dash.
tmux-dashdash.patch
Description: Binary data
* anatoly techtonik [02-08-14 04:20]:
> On Fri, Feb 7, 2014 at 4:10 PM, Thomas Adam wrote:
> >> https://stackoverflow.com/questions/3432536/create-session-if-none-exists
> >>
> >> Is it possible to implement a simple create-or-attach command, which
> >> will create a (named) session if it doesn't
That's really cool. I guess it will be available in 1.9
But I find description confusing and flag name is not completely
intuitive to remember.
I'd rewrite it as:
new --attach some_name
Creates new named session or attaches to existing one if some_name
session already ex