tmux-plugins / tpm

Tmux Plugin Manager
MIT License
11.97k stars 419 forks source link

Document another "tpm not working" edge case #122

Open kaukas opened 6 years ago

kaukas commented 6 years ago

Hello.

Recently I could not get tpm to work and after much digging it turned out that my environment was incorrect. I configured Alacritty to use tmux as a shell directly and everything worked except for the tpm. Turns out the default environment is very basic and tmux itself was not even in the $PATH.

This is very much an edge case so I would understand if you do not want to merge. Technically not even a problem with tpm. But others might hit it the way I did and maybe the description would help.

Thank you!

bruno- commented 6 years ago

Hey, this does look like a very edge case.. I never heard of a tip to use tmux as a shell..

kaukas commented 6 years ago

this does look like a very edge case.. I never heard of a tip to use tmux as a shell..

Agreed but it makes sense to do so in certain situations. I encountered one such situation and tpm was the only thing that failed to work.

So what would you like to do with this PR? Should I close it?

bruno- commented 6 years ago

Let's see if others have the same issue.. if yea and if they find this PR helpful then we should probably merge it so it's easily accessible.

kaukas commented 6 years ago

Ok, let's wait for some "me too"s. Thank you!

lovesegfault commented 6 years ago

This happened to me today, thank you for documenting this! Saved me a lot of time.

duhd1993 commented 3 years ago

Me too. thanks for documenting this. I think the best solution would be tmux improving its behavior when used as the first level shell. But that was already declined...

FranklinYu commented 1 year ago

In general, it is discouraged to use tmux directly as a login shell (/etc/shells). I understand that you want to be in tmux right after creating the terminal emulator, but IMO the right way should be executing tmux as the last command during shell initialization (e.g. ~/.bash_profile on macOS). A lot of thing is going to break if the “login shell” is not POSIX…