加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

osx – 终端:shell启动文件在哪里?

发布时间:2020-12-15 19:21:11 所属栏目:安全 来源:网络整理
导读:我正在遵循一个名为 Starting a Django 1.4 Project the Right Way的教程,其中介绍了如何使用virtualenv和virtualenvwrapper等等。 有一个部分如下: If you’re using pip to install packages (and I can’t see why you wouldn’t),you can get both vir
我正在遵循一个名为 Starting a Django 1.4 Project the Right Way的教程,其中介绍了如何使用virtualenv和virtualenvwrapper等等。

有一个部分如下:

If you’re using pip to install packages (and I can’t see why you wouldn’t),you can get both virtualenv and virtualenvwrapper by simply installing the latter.

06000

After it’s installed,add the following lines to your shell’s start-up file (.zshrc,.bashrc,.profile,etc).

06001

Reload your start up file (e.g. source .zshrc) and you’re ready to go.

我正在运行Mac OSX,并且不太了解我的终端方式。作者是什么意思的shell的启动文件(.zshrc,.bashrc,.profile等)?我在哪里可以找到这个文件,以便我可以添加这三行?

而且,他重启你的启动文件(例如source .zshrc)是什么意思?

我非常感激OSX的具体响应。

你可能使用bash,所以只需将这3行添加到?/ .bash_profile中:
$ cat >> ~/.bash_profile
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/directory-you-do-development-in
source /usr/local/bin/virtualenvwrapper.sh
^D

其中^ D表示您键入Control D(EOF)。

然后关闭你的终端窗口并打开一个新的窗口,或者你可以像这样重新加载你的.bash_profile文件:

$ source ~/.bash_profile

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读