Create a basic .bashrc file [closed]

2019-03-05 06:39发布

问题:

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.