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

feat(installer): option to set path to include install prefix #4263

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Silicasandwhich
Copy link

Description

Updated the installer script to be able to detect the user's current login shell and add the install prefix (.local/bin by default) to the path of its corresponding dotfile. it prompts the user to do this if the script was launched in interactive mode and the script does not detect that the install prefix is in the current path. If the script is not in interactive mode, the script performs its current behavior of echoing a warning at the end of installation.

Currently, it will only autodetect zsh and fish and change their paths, while defaulting to changing ~/.profile if the login shell is something else. This can easily be expanded with further commits.

fixes #4135

How Has This Been Tested?

I have set up clean virtual machines and attempted installation with the user shell set as zsh, bash, and fish. In each instance, it appended to the file correctly, and after re-sourcing the dotifles, lvim was able to be executed. Additionally, attempting installation with the install prefix already on the path correctly skipped this step.

@Silicasandwhich Silicasandwhich changed the title Feat/installer auto set path feat(installer): option to set path to include install prefix Jun 28, 2023
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.

Install script should append path to lvim executable
1 participant