问题
I don't have .bashrc
file, I want to create one but how? And what does a basic .bashrc
file contains? I am on Linux Mint 12
I want to have a .bashrc
file, because i have created a folder for virtualenv
and I want to load virtualenvwrapper
回答1:
A .bashrc
file contains whatever default settings you want to use when you are using bash
. If you don't have any particular preferences then leave it blank for now.
Typical contents of a .bashrc file includes aliases of commands you find yourself using a lot.
回答2:
Why do you want one if you don't know what to put in there? You only need a .bashrc
(or .profile
or .bash_profile
) if you actually have something you want to execute in every shell (or login shell).
But you can basically put any bash commands in those files.
来源:https://stackoverflow.com/questions/9349108/create-a-basic-bashrc-file