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

.env file loaded twice #10

Closed
psprint opened this issue May 14, 2017 · 3 comments
Closed

.env file loaded twice #10

psprint opened this issue May 14, 2017 · 3 comments

Comments

@psprint
Copy link

psprint commented May 14, 2017

Hello,

% cat ~/.env
echo "HOME .env"
% source ~/.zplugin/plugins/horosgrisa---autoenv/autoenv.plugin.zsh
HOME .env
HOME .env
@grigorii-horos
Copy link
Member

@psprint Please, check now

@Nagasaki45
Copy link
Contributor

To help keep things organized, the change that @horosgrisa applied and asked @psprint to check is 1194d15.

I would like to add that although I don't fully understand the code I commented out these lines to solve another problem I encountered. I'm using terminator, and the following cuase the shell prompt to stop working propetly (no color, no git integration etc.):

  1. Enter a folder with .env file.
  2. Split the terminator window into two (pwd in the new window will point to the same location, but the environment won't be activated, which is fine).
  3. In the new window, activate the environment with source .env.
  4. Exit the directory.

It may be related to the original issue, or not. In any case, it can indicate that there is an issue with this part of the plugin.

@psprint
Copy link
Author

psprint commented May 14, 2017

Now I see single execution

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

3 participants