Re: Launching commands in a window

2010-12-15 Thread Nicholas Marriott
On Wed, Dec 15, 2010 at 03:19:45PM -0500, Lars Kellogg-Stedman wrote: > > Someone suggested treating the rest of the command line as one argument > > if -- is encountered, I'd be happy with that. > > Why require "--"? Looking at the man page: > > new-window [-adk] [-n window-name] [-t target-w

Re: Launching commands in a window

2010-12-15 Thread Lars Kellogg-Stedman
> Someone suggested treating the rest of the command line as one argument > if -- is encountered, I'd be happy with that. Why require "--"? Looking at the man page: new-window [-adk] [-n window-name] [-t target-window] [shell-command] ...why is it necessary to terminate the arguments with "--

Re: Launching commands in a window

2010-12-15 Thread Nicholas Marriott
On Wed, Dec 15, 2010 at 02:44:56PM -0500, Lars Kellogg-Stedman wrote: > > What shell are you using? > > Bash. > > > In ksh, if I type: > > > >        tmux neww 'emacs /usr/s > > That's questionable behavior, because how would it handle filenames > containing spaces? You have to intervene and ed

Re: Launching commands in a window

2010-12-15 Thread Lars Kellogg-Stedman
> What shell are you using? Bash. > In ksh, if I type: > >        tmux neww 'emacs /usr/s That's questionable behavior, because how would it handle filenames containing spaces? > An alternative would be to write a little shell function to translate: > > tmux_neww() { >        tmux neww "$*" > }

Re: Launching commands in a window

2010-12-15 Thread Nicholas Marriott
Hi What shell are you using? In ksh, if I type: tmux neww 'emacs /usr/s It completes it just fine. An alternative would be to write a little shell function to translate: tmux_neww() { tmux neww "$*" } On Wed, Dec 15, 2010 at 11:57:36AM -0500, Lars Kellogg-Stedman wrote: > Af

Launching commands in a window

2010-12-15 Thread Lars Kellogg-Stedman
After many (many) years using screen, I've recently started working with tmux. While for the most part I really like the design, I've run into a problem with the way the new-window command works. As I understand it, the way to run a command in a new window is this: tmux new-window 'command arg