.bashrc and .bash_profile
Posted: 2017-12-26 Filed under: system | Tags: .bashrc, .bash_profile, export, source 2 CommentsI never had the habit of setting up ~/.bashrc
and ~/.bashr_profile
or modifying them or any way. I was just happy with the prompt presented when I opened the terminal. It never bothered me that my normal user did not have a colour scheme, for example. Recently, I got curious about that and checked the Slackware Wiki.
Plenty of useful information there.
As a start, I created ~/.bash_profile
and ~/.bashrc
with the following content:
if [ -f ~/.bashrc ]; then . ~/.bashrc fi
. /etc/profile export VISUAL=nano export EDITOR=nano
To implement any changes made to .bashrc, it should be sourced:
source ~/.bashrc
[…] .bashrc and .bash_profile → […]
[…] sourcing of .bashrc is discussed […]