New answers tagged bashrc
To change the colour of the prompt to red for root, I modified the .bashrc file, following the examples in this thread. regularuser@myubuntubox:~$ sudo su - root@myubuntubox:~# vim .bashrc Then, in vim, search for the final appearance of PS1 assignment, and add this following it: # Set RED prompt PS1="\[\e[01;31m\]$PS1\[\e[00m\]"
If you have a fresh install of Linux Mint, .bashrc file might not be there. You can create a new one with touch ~/.bashrc and specify your settings and variables. Since the .bashrc is created in the user's home directory it's user specific. If you create a new user you'll have to set up another appropriate .bashrc file. Variables and settings you ...
I have a .bashrc file in my home folder, but I didn't see any. Open a terminal and Try ls -la ~/.bashrc to see it. who calls .bashrc when I open a new terminal window? It is bash shell initialization file. BASH call it.
Your home directory is probably not /home/, it's probably something like /home/sibow/. Do this to see for yourself: echo ~ and ls /home – glenn jackman Jan 10 '15 at 14:42
Source it again: . ~/.bashrc # or source ~/.bashrc
Because terminals don't usually run login shells by default. They also usually have options to run login shells, which do source .profile. To control the behaviour of login shells. Depends on the shell. For bash, see the set of startup files. Not in some sense (updating login records, for example). If you have a folder called bin in $HOME, the default ...
Top 50 recent answers are included