Create a basic .bashrc file [closed]

2019-03-05 05:53发布

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

2条回答
啃猪蹄的小仙女
2楼-- · 2019-03-05 06:27

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.

查看更多
神经病院院长
3楼-- · 2019-03-05 06:33

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.

查看更多
登录 后发表回答