Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 3280  / 1 Year ago, mon, february 27, 2023, 1:37:44

I installed Ubuntu 11.10 mini + LXDE and wanted to make my command line different in terminal (than just plain white), so I added blue color to path line (everything until $ sign) and it works fine but I have two strange glitches now:



  1. When I write a line which is longer than terminal window, instead of starting at next line it starts at the same one, overwriting everything which was in there.

  2. Sometimes while navigating over previous commands (up/down arrow keys) some part of command gets stuck and is treated as part of prompt (the blue text), but it is white and is non-deletable and is not taken as part of command when I press enter.


What could I have messed up? The bad thing is that I don't remember what exactly I changed, but I'm sure I changed only one line in .bashrc


Edit: For anyone else who is interested in customizing the prompt, here's a nice tutorial . Make sure you don't miss any symbols (especially '' ones) and everything works fine.


More From » 11.10

 Answers
4

The default bashrc can be found in /etc/skel/.bashrc. I would suggest you make a backup of your current bashrc, then replace your bashrc with the one in skel, then see if the problems still occur. Then if they don't, backup and edit your new bashrc, putting comments in saying what you did!!


[#41919] Monday, February 27, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
earxcept

Total Points: 310
Total Questions: 115
Total Answers: 111

Location: Japan
Member since Sat, Oct 2, 2021
3 Years ago
;