Coder Social home page Coder Social logo

Comments (5)

ParthS007 avatar ParthS007 commented on July 17, 2024 1

Closing due to inactivity 👍

from fish-pipenv.

lig avatar lig commented on July 17, 2024 1

Affects me as well. Opening a new terminal directly in a folder which has Pipfile doesn't activate the pipenv shell. Typing cd . after that activates pipenv shell as expected.

It is expected to have pipenv shell to be activated when fish has been started directly in a folder containg Pipfile.

from fish-pipenv.

franciscolourenco avatar franciscolourenco commented on July 17, 2024 1

You could probably also solve this problem by calling __pipenv_shell_activate from config.fish

from fish-pipenv.

lig avatar lig commented on July 17, 2024

@ParthS007 I don't understand why this one is closed

from fish-pipenv.

rahul286 avatar rahul286 commented on July 17, 2024

Update

I had to roll back the change as it was messing up the PATH order as below (brew python was accessible before pipenv python in pipenv shell)

❯ which -a python
/opt/homebrew/opt/python/libexec/bin/python
/Users/rahul286/.local/share/virtualenvs/random-eAAq4JbF/bin/python

I also came here looking for a solution to this issue.

As of now I got desired behavior by editing the line

function __pipenv_shell_activate --on-variable PWD

with

function __pipenv_shell_activate --on-variable PWD --on-event fish_prompt

I believe we need to fire function __pipenv_shell_activate on some event related to a new terminal tab creation. fish_prompt does the job but it runs __pipenv_shell_activate function every time you're run any command. So it is not efficient.

from fish-pipenv.

Related Issues (16)

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.