Skip to content

tmux: fix TMUX_SHELL#63

Merged
mandaiy merged 1 commit intomainfrom
tmux/fix-shell
Jan 12, 2026
Merged

tmux: fix TMUX_SHELL#63
mandaiy merged 1 commit intomainfrom
tmux/fix-shell

Conversation

@mandaiy
Copy link
Owner

@mandaiy mandaiy commented Dec 28, 2025

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -1,4 +1,5 @@
if-shell '[ -n "#{env:TMUX_SHELL}" ]' 'set-option -g default-shell "#{env:TMUX_SHELL}"'
if-shell '[ -n "${TMUX_SHELL}" ]' 'set-option -g default-shell "${TMUX_SHELL}"'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use tmux format expansion for default-shell

In tmux command arguments, ${TMUX_SHELL} is not expanded because tmux only expands its own format strings (e.g., #{env:TMUX_SHELL}) inside set-option. The if-shell condition runs in /bin/sh so the test works, but the set-option argument becomes the literal string ${TMUX_SHELL} and tmux will try to use that literal as the shell path. This breaks users who set TMUX_SHELL, because tmux won’t pick up their intended shell value.

Useful? React with 👍 / 👎.

@mandaiy mandaiy merged commit 865a477 into main Jan 12, 2026
1 check passed
@mandaiy mandaiy deleted the tmux/fix-shell branch January 12, 2026 04:21
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