Skip to content

refactor: not alter user's default shell when opening popups#61

Merged
loichyan merged 3 commits into
mainfrom
refactor/default-shell
Jan 29, 2026
Merged

refactor: not alter user's default shell when opening popups#61
loichyan merged 3 commits into
mainfrom
refactor/default-shell

Conversation

@loichyan

Copy link
Copy Markdown
Owner

Yesterday I found that display-popup supports passing arguments to shell-command. This means we can simply use

tmux display-popup /bin/sh -c '<script>'

to run our scripts, instead of the hacky workaround used in #34.

btw, why didn't I notice this earlier? It's because the tmux manpage is kind of inconsistent with its implementation, which has been fixed in tmux/tmux@68ffe65. That fix is included in tmux v3.6. But that doesn't mean this PR requires tmux v3.6 to work — I've verified that this feature is supported in tmux v3.4, though it's not properly documented.

@loichyan loichyan merged commit d4ae93e into main Jan 29, 2026
4 checks passed
@loichyan loichyan deleted the refactor/default-shell branch January 29, 2026 05:35
@loichyan loichyan mentioned this pull request Jan 31, 2026
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.

1 participant