Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve PATH when launching from terminal on MacOS #1758

Merged
merged 2 commits into from Feb 8, 2023

Conversation

akateiva
Copy link
Contributor

@akateiva akateiva commented Feb 4, 2023

Problem: When neovide is launched from a terminal on MacOS, the $PATH of the launching environment is not preserved due to use of the -l /--login option for shell commands.

This causes problems for me, because when launching neovide from CLI with an activated conda python environment, I would like the PATH be preserved from my terminal session so that the pyright language server starts with the desired python interpreter.

Solution: This solution is based on j4qfrost's work from #309, but it seems like the functionality was lost somewhere along the way :D

So in this PR, I propose using the --login option for launching shells if and only if we are launching not from a terminal.

@MultisampledNight
Copy link
Contributor

Looks good to me, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants