In relation to #149, #201, #238 and #256, and due to this happening for both me and a colleague, running .tmux.conf failed for the following line:
cut -c3- ~/.tmux.conf | sh -s _apply_configuration
I think it's related to what default shell is set - mine was set to bash, and it was stubborn even after a reboot (even after chsh - go figure!). Changing the line to the following worked for me (note sh changed to zsh) (EDIT: don't do this, read @gpakosz's commentary below re branch gh-254):
cut -c3- ~/.tmux.conf | zsh -s _apply_configuration
Would this be worth a pull request? Or does this change have some side effects? There are other | sh -c lines that might also benefit from being changed to | zsh -c, although I haven't tested.
Hello 👋
No, cut -c3- ~/.tmux.conf | zsh -s _apply_configuration would make this configuration depend on zsh which is not needed and likely not the proper way to solve whatever is happening.
Can you please run
$ cut -c3- ~/.tmux.conf | sh -sx _apply_configuration > /tmp/log.txt 2>&1
And upload the result?
@gpakosz You are right, of course zsh would be an extra dep - my bad!
Here's some visuals too, the before (including a manually run cut -c3- ~/.tmux.conf | sh -s _apply_configuration command):

and after running the zsh-ified command (cut -c3- ~/.tmux.conf | zsh -s _apply_configuration):

Forgot to also include the /tmp/log.txt, from running cut -c3- ~/.tmux.conf | sh -sx _apply_configuration > /tmp/log.txt 2>&1
Alright, please try out the gh-254 branch that solves #254.
I'll do my best to merge what's currently in flight soon.
Thank you! Consider this issue solved for me when using branch gh-254 - thanks for the incredibly fast responses too, you are a true open source hero :)
@gpakosz has the gh-254 branch been deleted? I still have this issue
@nivv The gh-254 branch has been merged. Just use most recent master branch
Thanks! It worked after a reinstall!
lör 14 dec. 2019 kl. 13:17 skrev Gregory Pakosz notifications@github.com:
Closed #279 https://github.com/gpakosz/.tmux/issues/279.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gpakosz/.tmux/issues/279?email_source=notifications&email_token=AA6Y3CVLHVXEDTHCX7N6OETQYTFGPA5CNFSM4IPQRTOKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOVPOGS6Y#event-2883348859,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA6Y3CWZTJS3W3E4BQDZEALQYTFGPANCNFSM4IPQRTOA
.
Most helpful comment
Alright, please try out the
gh-254branch that solves #254.I'll do my best to merge what's currently in flight soon.