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.