Peter Humphrey wrote: > On Friday, 28 June 2024 08:32:44 BST Dale wrote: > >> I did a major upgrade and found out I had a lot of config files to >> update. I performed those updates, while losing some of my settings. >> Anyway, I figured out how to set the alias variables. Simple enough. >> Create a file and list them in the file. The PS1 is different because >> it usually determines if a user is root or not and gives a different >> prompt. That requires a little bit of scripting, which most know is a >> huge weak point for me. > I thought the proper place to define aliases was in /etc/profile.d/ > profile_aliases.sh. That's where I have mine, anyway. > > PS1 is set in /etc/bash/bashrc.d/10-gentoo-color.bash, as you say. I change > the prompt colours in there, in the case of the little rescue system I have > on > each machine. That's so that I can see which system I'm logged-on to (I > maintain the rescue system by chrooting into it from the main system, and > it's > far too easy to make mistakes without that precaution). >
Way back when I first wanted to change mine, it was done in bashrc. According to searches, lots of people change it there but lots also do it in other places, some in user directories. Personal preference I guess. Mostly, I wanted to give a heads up to those who set it the way I do and that there is a clash if set in another file. When I couldn't login at all, I got kinda worried. It made several things start acting weird. If a person sees the post and knows to check if that file exists, then it could save someone else some issues. At first, I couldn't understand the reason it wasn't working. I think when I ran dispatch-update, that really started something. One of the files updated was bashrc. It seems the way history is stored changed. I gotta read up on that again. Sounds like it records commands as they are ran now instead of when you logout. I'm not sure. I kinda had other issues to deal with at the time. ;-) If so, that could be a good thing given I use Konsole and sometimes have 7, 8 or more tabs open doing different things. I'd like them all recorded not just the last tab I close. I do wish someone would create a wiki page that shows the different ways to do this sort of things with the new way being included. Some may want to do it my way but some may want to do it your way or some other way for various reasons. Right now, I don't see anything that details this sort of thing on the wiki. Maybe my search terms was bad but one of them was bashrc. Time to wash dishes and heat up supper. Gotta throw some coal in the firebox. Build up some steam. -_O Dale :-) :-)