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).

-- 
Regards,
Peter.




Reply via email to