Skip to content

run cli command only in the first context#1748

Open
raphamorim wants to merge 1 commit into
mainfrom
cli-command-first-window-only
Open

run cli command only in the first context#1748
raphamorim wants to merge 1 commit into
mainfrom
cli-command-first-window-only

Conversation

@raphamorim

Copy link
Copy Markdown
Owner

rio -e vi (or any -e/--command invocation) overwrote config.shell globally, so every new tab, split and window re-ran the command instead of opening the configured shell, and closing a short-lived command in a tab could not give you a shell back (#1020).

The CLI command is now carried separately from the config and consumed by the first window's first context only, keeping the existing behavior of forcing the spawn path for that context. Tabs, splits, subsequent windows and dock-reopen windows all spawn the configured shell.

Closes #1020.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copy of the application starting

1 participant