aaronjanse / 3mux

Terminal multiplexer inspired by i3
MIT License
1.82k stars 45 forks source link

Get shell from env var if available #56

Closed gottwald closed 4 years ago

gottwald commented 4 years ago

In modern MacOS account information like shell is not present in /etc/passwd for your user account by default. It's in the Directory Service. Commonly MacOS and Linux have the SHELL env variable set for login shells. This change makes the SHELL env variable the preferred shell discovery mechanism and falls back to /etc/passwd if it's unset.

aaronjanse commented 4 years ago

Thank you for the explanation. I'll patch this in the morning.

aaronjanse commented 4 years ago

Oh hey. It's a pull request! Thank you so much!!