Bash:安装virtualenvwrapper后如何刷新shell [不重新启动shell]?

Yug*_*dle 7 python bash ubuntu apt-get fabric

python-fabric用来设置我的服务器,它以编程方式配置服务器.

所以,我安装virtualenvwrapper为:

sudo apt-get install virtualenvwrapper
Run Code Online (Sandbox Code Playgroud)

安装了 - Virtualenvwrapper并将其初始化脚本添加到shell启动.

通常我们重新启动shell并初始化它,但在我的情况下,我不能重新启动shell fabric.

由于这是装有apt-get我没能找到初始化脚本条目~/.bashrc~/.bash_profile/etc/bash.bashrc

那么,在哪里apt-get添加了对初始化脚本的调用?

如何在shell不重启shell 的情况下刷新?

Yug*_*dle 14

解决了这个问题:

source /etc/bash_completion.d/virtualenvwrapper
Run Code Online (Sandbox Code Playgroud)

这就是它存储所有魔法的地方,它会.bashrc自动包含在内.