Re: [gentoo-user] Bash prompt colours

2021-12-07 Thread Frank Steinmetzger
Am Tue, Dec 07, 2021 at 10:26:11AM -0700 schrieb Grant Taylor: > Some drive-by after-the-fact comments: > > On 12/6/21 4:03 PM, Frank Steinmetzger wrote: > > [ "$MC_SID" ] && PS1_JOBS_COUNT="${PS1_JOBS_COUNT}MC " > > [ "$RANGER_LEVEL" ] && PS1_JOBS_COUNT="${PS1_JOBS_COUNT}R " > > I've t

Re: [gentoo-user] Bash prompt colours

2021-12-07 Thread Grant Taylor
Some drive-by after-the-fact comments: On 12/6/21 4:03 PM, Frank Steinmetzger wrote: [ "$MC_SID" ] && PS1_JOBS_COUNT="${PS1_JOBS_COUNT}MC " [ "$RANGER_LEVEL" ] && PS1_JOBS_COUNT="${PS1_JOBS_COUNT}R " I've taken to using things like the following: PS1_JOBS_COUNT="${PS1_JOBS_COUNT}

Re: [gentoo-user] Bash prompt colours

2021-12-06 Thread Frank Steinmetzger
Am Fri, Dec 03, 2021 at 02:43:54PM + schrieb Peter Humphrey: > > > > Hello list, > > > > > > > > Is there a way to set the colour of a bash prompt according to > > > > whether the user has SSH'd in? > > > > […] > > > When you are connected via SSH, the environment variable > > > SSH_CONNECTIO

Re: [gentoo-user] Bash prompt colours

2021-12-03 Thread Peter Humphrey
On Friday, 3 December 2021 13:30:29 GMT Michael wrote: > On Friday, 3 December 2021 12:08:05 GMT tastytea wrote: > > On 2021-12-03 11:17+ Peter Humphrey wrote: > > > Hello list, > > > > > > Is there a way to set the colour of a bash prompt according to > > > whether the user has SSH'd in? >

Re: [gentoo-user] Bash prompt colours

2021-12-03 Thread Michael
On Friday, 3 December 2021 12:08:05 GMT tastytea wrote: > On 2021-12-03 11:17+ Peter Humphrey wrote: > > Hello list, > > > > Is there a way to set the colour of a bash prompt according to > > whether the user has SSH'd in? > > > > This machine is a compile host for some others on the LAN, an

Re: [gentoo-user] Bash prompt colours

2021-12-03 Thread tastytea
On 2021-12-03 11:17+ Peter Humphrey wrote: > Hello list, > > Is there a way to set the colour of a bash prompt according to > whether the user has SSH'd in? > > This machine is a compile host for some others on the LAN, and it > would be helpful if it were more obvious that I'm connected to

[gentoo-user] Bash prompt colours

2021-12-03 Thread Peter Humphrey
Hello list, Is there a way to set the colour of a bash prompt according to whether the user has SSH'd in? This machine is a compile host for some others on the LAN, and it would be helpful if it were more obvious that I'm connected to another machine. Of course, the standard prompt tells me th

Re: [gentoo-user] Bash prompt

2005-09-14 Thread Willie Wong
On Wed, Sep 14, 2005 at 05:45:08PM +0200, Holly Bostick wrote: > OK, you're right. I think that the problems that I was working around > may have been based in *sudo*, not su itself, which works fine (now), as > does sudo su. But when I was setting up my system with sudo (like a > month and a half

Re: [gentoo-user] Bash prompt

2005-09-14 Thread Holly Bostick
Willie Wong schreef: > On Wed, Sep 14, 2005 at 01:25:00PM +0200, Holly Bostick wrote: > >> Charles Trois schreef: >>> >>> I thought that /etc/profile should provide the default, but I was >>> obviously wrong. Trying to mend things, I created two files >>> /root/.bash_profile and /root/.bashrc,

Re: [gentoo-user] Bash prompt

2005-09-14 Thread Willie Wong
On Wed, Sep 14, 2005 at 11:30:19AM +0200, Hans-Werner Hilse wrote: > Hi, > > On Wed, 14 Sep 2005 11:15:13 +0200 > Charles Trois <[EMAIL PROTECTED]> wrote: > > > I am getting confused with profile, bashrc, etc. > > The prompt string I want to use is > > > > PS1="[EMAIL PROTECTED] \W]\$ " > > > >

Re: [gentoo-user] Bash prompt

2005-09-14 Thread Willie Wong
On Wed, Sep 14, 2005 at 01:25:00PM +0200, Holly Bostick wrote: > Charles Trois schreef: > > Hello! > > > > I am getting confused with profile, bashrc, etc. The prompt string I > > want to use is > > > > PS1="[EMAIL PROTECTED] \W]\$ " > > > > I therefore wrote it in /etc/profile (at two levels,

Re: [gentoo-user] Bash prompt

2005-09-14 Thread wiqd
On Wed, 2005-09-14 at 11:15 +0200, Charles Trois wrote: > Hello! > Hi Charles, > I am getting confused with profile, bashrc, etc. > The prompt string I want to use is > > PS1="[EMAIL PROTECTED] \W]\$ " > > I therefore wrote it in /etc/profile (at two levels, root and non-root), > ~/.bash_profi

Re: [gentoo-user] Bash prompt

2005-09-14 Thread Holly Bostick
Charles Trois schreef: > Hello! > > I am getting confused with profile, bashrc, etc. The prompt string I > want to use is > > PS1="[EMAIL PROTECTED] \W]\$ " > > I therefore wrote it in /etc/profile (at two levels, root and > non-root), ~/.bash_profile and ~/.bashrc. > > If I log in as a plain

Re: [gentoo-user] Bash prompt

2005-09-14 Thread Hans-Werner Hilse
Hi, On Wed, 14 Sep 2005 11:15:13 +0200 Charles Trois <[EMAIL PROTECTED]> wrote: > I am getting confused with profile, bashrc, etc. > The prompt string I want to use is > > PS1="[EMAIL PROTECTED] \W]\$ " > > [...] > I thought that /etc/profile should provide the default, but I was > obviously w

[gentoo-user] Bash prompt

2005-09-14 Thread Charles Trois
Hello! I am getting confused with profile, bashrc, etc. The prompt string I want to use is PS1="[EMAIL PROTECTED] \W]\$ " I therefore wrote it in /etc/profile (at two levels, root and non-root), ~/.bash_profile and ~/.bashrc. If I log in as a plain user (moi), I get this: [EMAIL PROTECTED]