Pipenv: exit vs deactivate

Created on 10 Dec 2017  ·  4Comments  ·  Source: pypa/pipenv

A proper way to exit from the pipenv shell is by exit command.
But I am used to deactivate through all these years.

And whenever I accidentally use deactivate I have to close my terminal window and reopen it again.

Is there a way to fix this somehow?
Maybe some way to recover from the wrong command?
Or disallow deactivate?

Most helpful comment

I believe you can still exit after accidentally using deactivate, can you not? I do like the idea of overwriting deactivate to say something like “Hey, you might want to use exit instead”, like what Python does when you enter exit without the parentheses.

All 4 comments

I believe you can still exit after accidentally using deactivate, can you not? I do like the idea of overwriting deactivate to say something like “Hey, you might want to use exit instead”, like what Python does when you enter exit without the parentheses.

no

@uranusjr thanks for your advice! That's a good workaround.

@kennethreitz what's your vision of this problem? Should users just get used to it?

@sobolevn basically yes :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marc-fez picture marc-fez  ·  3Comments

xi picture xi  ·  3Comments

konstin picture konstin  ·  3Comments

ipmb picture ipmb  ·  3Comments

bgjelstrup picture bgjelstrup  ·  3Comments