tilix icon indicating copy to clipboard operation
tilix copied to clipboard

Unable to create new session with split terminal

Open skmagiik opened this issue 3 years ago • 1 comments

tilix -a app-new-session -x "tilix -a session-add-right"

Expected behavior: Tilix opens a new session The new session adds a terminal to the right resulting in an additional terminal (split vertically).

Resulting behavior: Tilix opens a new session The new session (appears to) adds a terminal to the right. The session terminates.

End result goal I was attempting was a workspace launching script where I could prepare a workspace. Attempted command is below: tilix -a app-new-session -x "tilix -a session-add-right; ssh HOSTNAME -t "cd /path/to/workspace; bash --login"" The following works as expected: tilix -a app-new-session -x "ssh HOSTNAME -t "cd /path/to/workspace; bash --login""

I was hoping to find more "terminal navigation" commands to automate creating/scripting multiple terminals or sessions from the initial launch script.

skmagiik avatar May 03 '21 18:05 skmagiik

The -x option tells Tilix to execute the specified command instead of your shell. Once that command finishes (and tilix -a session-add-right finishes quickly), the terminal is destroyed.

Try simply:

tilix -a app-new-session && tilix -a session-add-right -x "ssh ..."

— seems to work for me.

vfaronov avatar Aug 03 '21 13:08 vfaronov