tpm icon indicating copy to clipboard operation
tpm copied to clipboard

Document another "tpm not working" edge case

Open kaukas opened this issue 7 years ago • 7 comments

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!

kaukas avatar Jan 12 '18 22:01 kaukas

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

bruno- avatar Jan 13 '18 21:01 bruno-

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?

kaukas avatar Jan 18 '18 13:01 kaukas

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.

bruno- avatar Jan 21 '18 21:01 bruno-

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

kaukas avatar Jan 22 '18 14:01 kaukas

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

lovesegfault avatar Jul 19 '18 20:07 lovesegfault

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...

duhd1993 avatar Feb 14 '21 20:02 duhd1993

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…

FranklinYu avatar Jan 05 '23 05:01 FranklinYu