[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.
- Default PS1, ილია ჩაჩანიძე, 2021/03/29
- Re: Default PS1, Chris Elvidge, 2021/03/29
- Re: Default PS1,
Greg Wooledge <=
- Re: Default PS1, L A Walsh, 2021/03/29
- Re: Default PS1, Greg Wooledge, 2021/03/29
- Re: Default PS1, L A Walsh, 2021/03/29
- Re: Default PS1, Greg Wooledge, 2021/03/29
- Re: Defaults -- any, L A Walsh, 2021/03/30
- Re: Defaults -- any, Lawrence Velázquez, 2021/03/30
- Re: Defaults -- any, Greg Wooledge, 2021/03/30
Re: Default PS1, Christopher Dimech, 2021/03/29