Hi All,
LMDE novice user.
Received prompt from update manager to update bash from 4.2+dfsg-1 to 4.3-9.2 which I duly did.
However now when I open terminal I have lost text colour schemes for prompts. Used to be "user@host:" in bold neon green followed by "~$" in bold sky blue. Folder path navigation was always in light blue too. Found it very useful and aesthetically pleasing but now its just white text and hard to eyescan.
Did a search and have found various articles on how to customise colour schemes in .bashrc but I can't get it to work properly. The unedited line since update is:
PS1="\[\e]0;\${debian_chroot:+($debian_chroot)}\u@\h: \w\a\] $PS1
Also wondering why this has changed after update. I believe my colour scheme was always default. The only thing I set away from default was the background colour.
Can anyone shed some light?
Thanks
<SOLVED> terminal prompt colour change after bash update
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
<SOLVED> terminal prompt colour change after bash update
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: lost terminal prompt colour scheme after bash 4.3-9.2 up
It changed because during the upgrade you were offered to modify a config file and you said yes. But the answer was no. As always.
Last edited by killer de bug on Wed Oct 01, 2014 5:08 am, edited 1 time in total.
Re: lost terminal prompt colour scheme after bash 4.3-9.2 up
OK, so is there anyway to revert back?
I have a back up from a couple of weeks ago. Can i just overwrite said 'config' file or portion/lines from that config file into current. If so, what config file am I looking for and where?
The PS1 line referenced below seems to be the same in backed up .bashrc and new one so I assume you are talking about a different config file.
I have a back up from a couple of weeks ago. Can i just overwrite said 'config' file or portion/lines from that config file into current. If so, what config file am I looking for and where?
The PS1 line referenced below seems to be the same in backed up .bashrc and new one so I assume you are talking about a different config file.
Re: lost terminal prompt colour scheme after bash 4.3-9.2 up
Code: Select all
sudo mv /etc/bash.bashrc.dpkg-old /etc/bash.bashrc
-
- Level 5
- Posts: 635
- Joined: Sat Dec 26, 2009 3:36 pm
Re: lost terminal prompt colour scheme after bash 4.3-9.2 up
Or maybe try
Code: Select all
sudo dpkg-reconfigure bash
Re: lost terminal prompt colour scheme after bash 4.3-9.2 up
That's the return code from the last command. I don't know why it has been added, but the only purpose I can think of is to confuse the majority of the users. Oh, and make the command line look uglier, too.dankini wrote:What do the red numbers in square brackets refer to? How should I interpret them for future reference?
Re: lost terminal prompt colour scheme after bash 4.3-9.2 up
I lost the bash completion after the update, that was expected. I had to uncomment a few lines in /etc/bash.bashrc
However I lost the, that was unexpected.
However I lost the
Code: Select all
alias grep = grep --color
Re: <SOLVED> terminal prompt colour change after bash update
you can also move your old bash config file to your home directory so that it will never rewritten when you update bash. instead of using this command this trick should also work with other bash related config files.
Code: Select all
sudo mv /etc/bash.bashrc.dpkg-old /etc/bash.bashrc
#you can replace it with
sudo mv /etc/bash.bashrc.dpkg-old ~/.bashrc