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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an alternative to virtualfish #122

Closed
wants to merge 1 commit into from
Closed

Add an alternative to virtualfish #122

wants to merge 1 commit into from

Conversation

nakulj
Copy link

@nakulj nakulj commented Jan 26, 2023

No description provided.

@jorgebucaran
Copy link
Owner

What kind of alternative is this? How does it work? Does it have users?

@nakulj
Copy link
Author

nakulj commented Mar 13, 2023

What kind of alternative is this

  • lightweight, focusing only on auto activation.
  • implemented purely in fish
  • uses inbuilt activate.fish, unlike virtualfish

how does it work

  • I use a function marked --on-variable PWD to run on every directory change.
  • If the there is a new virtual environment in that directory, we source the associated activate.fish script
  • if we are instead leaving a virtual environment, we call the deactivate function

does it have users

I have three stars so probably a tiny number, but I do think it's useful and sufficiently different from the existing plugins. Also, the source gist is the top result for "fish shell automatically activate virtual environment".

@jorgebucaran
Copy link
Owner

It's certainly nice to have an alternative, but could you work a bit more on those docs? Add some descriptions, examples, and compare it to virtualfish. If you can add the shine, I'll do my part here. 馃挴

@nakulj nakulj closed this by deleting the head repository Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants