Terminal: Where is the shell start-up file?

后端 未结 4 1480
天命终不由人
天命终不由人 2020-12-23 12:54

I\'m following a tutorial called Starting a Django 1.4 Project the Right Way, which gives directions on how to use virtualenv and virtualenvwrapper, among other things.

4条回答
  •  一个人的身影
    2020-12-23 13:42

    You're probably using bash so just add these 3 lines to ~/.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
    

    where ^D means you type Control+D (EOF).

    Then either close your terminal window and open a new one, or you can "reload" your .bash_profile like this:

    $ source ~/.bash_profile
    

提交回复
热议问题