bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Default PS1


From: Greg Wooledge
Subject: Re: Default PS1
Date: Mon, 29 Mar 2021 08:46:00 -0400

On Mon, Mar 29, 2021 at 01:42:10PM +0100, Chris Elvidge wrote:
> On 29/03/2021 12:04 pm, ილია ჩაჩანიძე wrote:
> > How can I set default PS1 variable from source code?
> > E.g I want it to display:
> > My-linux-distro $
> > And not:
> > Bash-5.1 $
> > 
> 
> Set it in $HOME/.bashrc

Given that the goal is clearly to make a new "default" for all users
on their custom operating system, a more viable answer is probably
to enable the SYS_BASHRC feature in config-top.h and then set the PS1
variable in /etc/bash.bashrc (or whatever file they point it to) to
advertise their operating system to people who already run it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]