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

In jenv.fish, add flags to sets for safety #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

roryokane
Copy link
Contributor

Use -l where I can to avoid overwriting any global variable called cmd, arg, or script. I don’t use it for the second set arg because it will have already been set, and I’m not sure if the if counts as a new scope for -l to create a new variable.

I also use -gx when setting PATH to make it global and export it, just to be sure.

Use `-l` where I can to avoid overwriting any global variable called `cmd`, `arg`, or `script`. I don’t use it for the second `set arg` because it will have already been set, and I’m not sure if the `if` counts as a new scope for `-l` to create a new variable.

I also use `-gx` when setting `PATH` to make it global and export it, just to be sure.
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

1 participant