[Top][All Lists]

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

Re: some profile bashrc urxvt issue..

From: Greg Wooledge
Subject: Re: some profile bashrc urxvt issue..
Date: Mon, 26 Jul 2021 14:38:31 -0400

On Mon, Jul 26, 2021 at 08:26:44PM +0200, Alex fxmbsw7 Ratchev wrote:
> on console login it works fine, ps1 gets set
> but when i started i noticed the default bash-5.1# prompt ( am root )

Logins through a Display Manager (lightdm, gdm3, xdm, etc.) generally
do not run a login shell at any point in their entire lifespan.

If you require special things to be done at login, and you sometimes
login with a GUI, then you will need to ask your operating system support
channel/list how to proceed.  There's no answer that works for all login
methods on all operating systems.

However, it sounds more like you only want to customize the prompt of
an interactive shell.  The correct place to do that is in the shell's
initialization file, which for bash is ~/.bashrc .  Don't try to do it
at login.

reply via email to

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