pipenv and bash aliases

后端 未结 1 460
我寻月下人不归
我寻月下人不归 2021-02-05 13:51

I have a core set of bash aliases defined in my .bash_profile (Mac). But when I activate a pipenv with pipenv shell, my aliases don\'t work and the bas

相关标签:
1条回答
  • 2021-02-05 14:31

    Aliases are never inherited. .bash_profile is only sourced for login shells, and pipenv apparently creates a nonlogin interactive shell. Aliases should be defined in .bashrc, and on a Mac (where terminal emulators starts login shells by default), add [[ -f ~/.bashrc ]] && source ~/.bashrc to the end of your .bash_profile.

    0 讨论(0)
提交回复
热议问题