Deactivate pyenv in current shell

前端 未结 7 2074
日久生厌
日久生厌 2021-02-13 02:22

My .bashrc has this:

enable-pyenv () {
    # Load pyenv automatically by adding
    # the following to your profile:

    export PATH=\"$HOME/.pyenv/bin:$PATH\"
         


        
7条回答
  •  抹茶落季
    2021-02-13 02:58

    Try playing around with some variants of:

    env -i bash

    env -i bash -l

    env -i bash --norc

    env -i bash --norc --noprofile

    This does not come without side effects as env -i nukes your whole session and thus afterwards a lot of convenience like $HOME is gone with the bathwater, but so is pyenv.

提交回复
热议问题