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

Implement support for loading and unloading .env files #11

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

Conversation

simotek
Copy link

@simotek simotek commented Apr 29, 2016

This provides two new functions for loading and unloading
.env files, tacklebox now also loads any .env file it finds
in the base tackle directory on startup.

This is my first attempt at loading/unloading env files, unfortunatly I had to add a special case for $PATH as fish treats it specially. I am also relying on the new string built in thats part of the fish 2.3 beta as it makes life a lot simpler.

Currently its just loading all the .env files in the tackle directory I have a example here https://github.com/simotek/tackle/tree/simotek-theme eventually ill clean up that theme enough for general use.

I was also thinking of setting it up to load .env files in the theme directory as files like https://github.com/simotek/tackle/blob/simotek-theme/simotekfish-colors.env are probably better as part of the theme.

This provides two new functions for loading and unloading
.env files, tacklebox now also loads any .env file it finds
in the base tackle directory on startup.
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.

1 participant