-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run-shell overrides $SHELL which causes broken default-command on mac #74
Comments
I've also faced this issue, I have analyzed this further more, here are my thoughts on fixing this issue,
A fault tolerant solution would be to use @bruno- @von please share your opinions on this, |
That seems reasonable. FYI, as I read the current tmux manpage, |
I didn't know this before, thanks for sharing it. |
I confirmed it by looking into the source code of |
As described in tmux-plugins/tpm#295 and tmux/tmux#4166,
run-shell
is now setting$SHELL
tosh
which causes tmux-sensible, at line 103, to incorrectly setdefault-command
to use 'sh' instead of the user-selected shell. This means new panes and windows will fire up withsh
instead of what the user expects (e.g.,zsh
).A work around is to put
set -g default-command "reattach-to-user-namespace -l $SHELL"
directly into ones .tmux.conf to override tmux-sensible.One possible fix would seem to be to modify tmux-sensible to use the tmux
default-shell
variable instead of$SHELL
.Or see this comment for other suggested fixes.
The text was updated successfully, but these errors were encountered: