Terminal: Where is the shell start-up file?

后端 未结 4 1473
天命终不由人
天命终不由人 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:32

    I use an approach that I think is easy to maintain. It also works well if you sometimes use Ubuntu systems, however I will be sure to address the OP's OSX requirement in my answer.

    1. Create a .aliases file with your alias(es) in your home directory, e.g. ~/.aliases

    2. Execute this file from your .bashrc file (this is executed each time for a new shell process) with source ~/.aliases. This is all you would actually need to do for Ubuntu btw.

    3. On OSX call .bashrc from your ~/.profile file, i.e. have ~/.bash_profile contain: source ~/.bashrc

提交回复
热议问题