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

An improved, fully self-contained version #9

Open
earwin opened this issue Dec 26, 2022 · 0 comments
Open

An improved, fully self-contained version #9

earwin opened this issue Dec 26, 2022 · 0 comments

Comments

@earwin
Copy link

earwin commented Dec 26, 2022

In case anybody needs it: https://gist.github.com/earwin/1f722d8f4bcf1ea3d3fa72a468f87a0a

Compared to original:

  • is a single file that can install and uninstall itself
  • works with any shell (tested bash, zsh, fish, xonsh)
  • doesn't parse any shell init-scripts, so doesn't fail on includes or unexpected syntax

(ruby snippet borrowed from https://github.com/mexisme/osx-env-sync)

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

No branches or pull requests

1 participant