I used this option to keep them in place:

new-session 'bash' ;
new-window -n 10bg "sh -c 'cd client-api && ls'" ;
set-window-option -t 10bg remain-on-exit on ;
split-window "cd core && pwd" ;
split-window cd sap && ps ;
split-window cd stub && sbt ;
select-layout tiled ;
select-pane -t 0

they end the work with blank output and status "Pane is Dead"

WW

On Wed, 16 Jan 2019 at 19:42, Nicholas Marriott <[email protected]>
wrote:

> But ls exits when it finishes so of course the pane will close. Try with
> something that sticks around like "top" or "sleep 1000".
>
> On Wed, 16 Jan 2019, 19:40 Waldemar Wosiński <[email protected]
> wrote:
>
>> Tried with `ls`. Same problem.
>> FYI: I use it through byobu to start 4 panes by tmuxrc file. All of that
>> on WSL
>>
>> WW
>>
>> On Wed, 16 Jan 2019 at 18:04, Nicholas Marriott <
>> [email protected]> wrote:
>>
>>> Works for me. Are you sure sbt is in your PATH? Try the full path to it.
>>>
>>> On Wed, 16 Jan 2019 at 17:16, Waldemar Wosiński
>>> <[email protected]> wrote:
>>> >
>>> > Hi,
>>> > I try to write a multipart bash-command.
>>> > The manual says it should work like with 'sh -c' but it doesn't.
>>> >
>>> > i tried:
>>> > new-window -n 10bg 'cd client-api && sbt' ;
>>> > and
>>> > new-window -n 10bg cd client-api \; sbt ;
>>> > and
>>> > new-window -n 10bg "cd client-api && sbt" ;
>>> >
>>> > sbt is not being fired.
>>> >
>>> > I tried as well setting the dir for the command but after:
>>> > new-window -n 10bg -c client-api sbt ;
>>> > the pwd is my home dir instead...
>>> >
>>> > Could you tell me how to do it, please?
>>> > --
>>> > --------------------------
>>> > Waldemar Wosiński
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> Groups "tmux-users" group.
>>> > To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> > To post to this group, send email to [email protected].
>>> > For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> --------------------------
>> Waldemar Wosiński
>>
>

-- 
--------------------------
Waldemar Wosiński

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to