pipenv 和 bash 别名
pipenv and bash aliases
我在 .bash_profile
(Mac) 中定义了一组核心 bash 别名。但是当我用 pipenv shell
激活 pipenv 时,我的别名不起作用,bash alias
命令 returns 什么也没有。
是否需要配置步骤来生成从父 shell 继承 bash 别名的 pipenv shell?
永远不会继承别名。 .bash_profile
仅用于登录 shell,而 pipenv
显然创建了一个非登录交互 shell。别名应在 .bashrc
中定义,并在 Mac 上(终端仿真器默认启动登录 shells),将 [[ -f ~/.bashrc ]] && source ~/.bashrc
添加到 [=10= 的末尾].
我在 .bash_profile
(Mac) 中定义了一组核心 bash 别名。但是当我用 pipenv shell
激活 pipenv 时,我的别名不起作用,bash alias
命令 returns 什么也没有。
是否需要配置步骤来生成从父 shell 继承 bash 别名的 pipenv shell?
永远不会继承别名。 .bash_profile
仅用于登录 shell,而 pipenv
显然创建了一个非登录交互 shell。别名应在 .bashrc
中定义,并在 Mac 上(终端仿真器默认启动登录 shells),将 [[ -f ~/.bashrc ]] && source ~/.bashrc
添加到 [=10= 的末尾].