Where do I find the bashrc file on Mac?

后端 未结 7 1151
死守一世寂寞
死守一世寂寞 2020-12-04 08:30

Hello I am following this page.. I\'m installing Python onto my mac so that I can set up a Django / Eclipse development environment.
However I am not too su

相关标签:
7条回答
  • 2020-12-04 09:00

    ~/.bashrc is already a path to .bashrc.

    If you do echo ~ you'll see that it's a path to your home directory.

    Homebrew directory is /usr/local/bin. Homebrew is installed inside it and everything installed by homebrew will be installed there.

    For example, if you do brew install python Homebrew will put Python binary in /usr/local/bin.

    Finally, to add Homebrew directory to your path you can run echo "export PATH=/usr/local/lib:$PATH" >> ~/.bashrc. It will create .bashrc file if it doesn't exist and then append the needed line to the end.

    You can check the result by running tail ~/.bashrc.

    0 讨论(0)
提交回复
热议问题