X.sh in profile.xml

2007-07-29 Thread Ag. D. Hatzimanikas
On Sun, Jul 29, at 06:53 David Jensen wrote: > Ag. D. Hatzimanikas wrote: > > > > With this chance, I also updated the X.sh script (/X11R6/X11R7). > > > I was not aware we were making this change. Oh yes, sometimes I think I am like a bull in a glass shop. I have to be a little more elegant,

Re: [Diff] profile.xml. [Was: Re: extra-prompt.sh]

2007-07-29 Thread David Jensen
Ag. D. Hatzimanikas wrote: > > > Thanks a lot David, > > Attached is a diff with your suggestions. > > With this chance, I also updated the X.sh script (/X11R6/X11R7). > I was not aware we were making this change. It works for me, /usr/X11R7 is what I use. We should put it to discussion? Per

[Diff] profile.xml. [Was: Re: extra-prompt.sh]

2007-07-29 Thread Ag. D. Hatzimanikas
On Sun, Jul 29, at 01:56 David Jensen wrote: > > I suggest. > 1). > Lose /etc/extra-prompt.sh. > 2). > Lose export for PS1. > 3). > Use: > > NORMAL="\[\e[0m\]" > RED="\[\e[1;31m\]" > GREEN="\[\e[1;32m\]" > if [[ ${EUID} == 0 ]] ; then > PS1="$RED\u [ $NORMAL\w$RED ]# $NORMAL" > else

Re: extra-prompt.sh

2007-07-29 Thread David Jensen
Bruce Dubbs wrote: much snipped! >> Reviewing this thread >> http://linuxfromscratch.org/pipermail/blfs-dev/2007-March/016818.html >> it seems PS1 should not be exported, no decision was reached >> > > It should not be exported because it does no good. PS1 is reset for > each invocation. Fr

Re: extra-prompt.sh

2007-07-29 Thread Serge van Thillo
On Sun, 2007-07-29 at 09:58 -0500, Bruce Dubbs wrote: > taipan67 wrote: > > Bruce Dubbs wrote: > >> David Jensen wrote: > >> > >> NORMAL="\[\033[0;39m\]" > >> RED="\[\033[1;31m\]" > >> GREEN="\[\033[1;32m\]" > >> > >> if [[ ${EUID} == 0 ]] ; then > >> PS1="$RED\u [ $NORMAL\w$RED ]\$ $NORMAL" > >

Re: extra-prompt.sh

2007-07-29 Thread Bruce Dubbs
David Jensen wrote: > taipan67 wrote: > if [[ ${EUID} == 0 ]] ; then > PS1='\[\e[1;31m\]\u [ \[\e[00m\]\w \[\e[1;31m\]]\$ \[\e[00m\]' > else > PS1='\[\e[1;32m\]\u [ \[\e[00m\]\w \[\e[1;32m\]]\$ \[\e[00m\]' > fi > > >>> This is too cryptic. Us

Re: extra-prompt.sh

2007-07-29 Thread David Jensen
taipan67 wrote: if [[ ${EUID} == 0 ]] ; then PS1='\[\e[1;31m\]\u [ \[\e[00m\]\w \[\e[1;31m\]]\$ \[\e[00m\]' else PS1='\[\e[1;32m\]\u [ \[\e[00m\]\w \[\e[1;32m\]]\$ \[\e[00m\]' fi >> This is too cryptic. Use: >> >> NORMAL="\[\033[0;39

Re: extra-prompt.sh

2007-07-29 Thread Bruce Dubbs
taipan67 wrote: > Bruce Dubbs wrote: >> David Jensen wrote: >> >>> Moving to dev. >>> >> >>> Ag. D. Hatzimanikas wrote: >>> Does this prompt (in /etc/profile) looks good to you? (it was suggested by David Jensen) if [[ ${EUID} == 0 ]] ; then PS1='\[\e[1

Re: extra-prompt.sh

2007-07-29 Thread taipan67
Bruce Dubbs wrote: > David Jensen wrote: > >> Moving to dev. >> > > >> Ag. D. Hatzimanikas wrote: >> >>> Does this prompt (in /etc/profile) looks good to you? (it was suggested by >>> David Jensen) >>> >>> if [[ ${EUID} == 0 ]] ; then >>> PS1='\[\e[1;31m\]\u [ \[\e[00m\]\w \[\