GithubHelp home page GithubHelp logo

aohorodnyk / fish-autovenv Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 2.0 16 KB

Automatically activate/deactivate Python virtual enviroments when entering/leaving a directory

License: MIT License

Shell 100.00%
fish fish-shell fish-plugin python venv venv-python virtualenv virtualenv-manager

fish-autovenv's Introduction

Hello there, ๐Ÿ‘‹

I'm Anton Ohorodnyk, a Software Engineer by trade. Here's a quick rundown about me:

  • I've been navigating the software engineering seas since 2005.
  • Occasionally, you'll find me penning thoughts on my blog.
  • My journey with social media has been a rocky one, with the exception of my time on Jabber and IRC. However, I'm looking forward to reintegrating into the tech-savvy world through Mastodon.
  • I'm an active contributor to various open-source projects, with most of my contributions proudly displayed here on GitHub.
  • I am an advocate for minimalism and simplicity, reflected clearly in my coding style and designs.
  • I'm an enthusiast of Golang, backend development, databases, distributed systems, and Web Technologies.
  • I greatly enjoy collaborating with others, so don't hesitate to connect with me through any available channel.

๐Ÿ“ซ How to reach me:

I prefer to keep information consistent, so the best way to find all the ways to reach me is through my website.

fish-autovenv's People

Contributors

aohorodnyk avatar timothybrown avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

osmollo be-ez

fish-autovenv's Issues

Error with starting in fish+tmux

Hi! Thx for doing this plugin, it is very helpful for me. Issue, that i reporting is not happening all the time.

Problem

After i start fish with tmux, it gives me error:

fish: Unknown command: deactivate
~/.config/fish/conf.d/autoenv.fish (line 52):
      deactivate
      ^~~~~~~~~^
in function 'applyAutoenv'
        called on line 71 of file ~/.config/fish/conf.d/autoenv.fish
from sourcing file ~/.config/fish/conf.d/autoenv.fish
        called on line 248 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish

        called during startup
Deactivated Virtual Enviroment ()
sessions should be nested with care, unset $TMUX to force
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish

After this error all funcationality of autovenv is not avaiable. Auto activation enviropment after entering directory is not happening.

After i remove tmux from fish-config traceback dissapears:

2024-04-26.09-14-06.mp4

How to reproduce

  • add tmux in fish.config
  • open fish (in my case, with alacritty)

but, again: this bug is not stable. Sometime it come up after update, than, in few days, it dissapears. Idk, why)

Do u have some thoughts in mind, how to solve this?

UPD: Error dissapeared again. What should i check, when it will appear again?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.