I have a problem with my terminal in Ubuntu server 20.04.
I would like to color the syntax in my terminal, but after I restart the server, it's back to the normal uncolored syntax. I edited .bashrc
and uncommented this line:
force_color_promp=yes
I then and restarted .bashrc
with the command source .bashrc
, but as I wrote earlier, after restart it returns to the previous non colored syntax.
I don't use ssh to connect to the server. I'm working on it through the console, and I don't have a .bash_login
file. I am trying to find a different configuration file.
echo $0
say-bash
or justbash
?) Do you have a~/.bash_login
file? Please [edit] your question to include these details. – steeldriver Aug 05 '22 at 13:06sudo
here at all. – mook765 Aug 05 '22 at 16:20Force_color_prompt=yes
and saving it, there is a coloured prompt for me after reboot. I'm not sure about 20.04 LTS, but something seems to be different. You can check your~.profile
and/etc/profile
. Maybe there is a problem with the ownership of your~/.bashrc
because you used sudo with it. Please check that, as hinted by mook765. – sudodus Aug 05 '22 at 16:24sudo
! – terdon Aug 07 '22 at 13:40