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

Continued #258: install.sh Add support for multiple shells #260

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

plutonium-239
Copy link
Contributor

This is continued from #258 (which was already merged, so I couldn't add commits there).

Most ~/.profile files already add ~/.local/bin to PATH; if not, we can add it to the respective shell configuration file.

Added support for

  • bash
  • zsh
  • fish
  • ksh
  • xonsh
  • csh
  • tcsh

There is no way for a child process (this install script, always running in bash) to directly affect the environment variables of the parent process (the invoking shell), so the best we can do in this case is instruct the user to re-source or relogin.

Also, changed to prepend instead of append to PATH for consistency.

Most `~/.profile` files already add `~/.local/bin` to PATH; if not, we can add it to the respective shell configuration file.

Added support for
- `bash`
- `zsh`
- `fish`
- `ksh`
- `xonsh`
- `csh`
- `tcsh`

There is no way for a child process (this install script, always running in `bash`) to directly affect the environment variables of the parent process (the invoking shell), so the best we can do in this case is instruct the user to re-source or religion.

Also, changed to prepend instead of append for consistency.
Copy link

netlify bot commented Jun 19, 2024

Deploy Preview for superfile ready!

Name Link
🔨 Latest commit f460bd0
🔍 Latest deploy log https://app.netlify.com/sites/superfile/deploys/6673366a9ac5900008f7a531
😎 Deploy Preview https://deploy-preview-260--superfile.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@yorukot yorukot merged commit 2a51444 into yorukot:main Jun 20, 2024
4 checks passed
@yorukot
Copy link
Owner

yorukot commented Jun 20, 2024

Thanks :)!

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.

2 participants