Hopefully the title of this post is descriptive enough.

As well-documented in the tmux manuals, tmux launches a login shell every time a new tmux window or pane (split) is launched.

Instead, how can I configure tmux to launch just one login shell per session (maybe the first window), and any subsequent window/pane created shall be a non-login shell?

If this is not possible, at least can I configure tmux such that when launching the server, it will read ~/.bash_profile or ~/.profile, but any window launched within tmux shall be a normal (non-login) shell?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.