shell-script-pt
[Top][All Lists]
Advanced

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

Re: [shell-script] O primeiro bug a gente nunca esquece...


From: Leslie Harlley Watter
Subject: Re: [shell-script] O primeiro bug a gente nunca esquece...
Date: Thu, 22 Jun 2000 14:52:01 -0300 (EST)

Oi Djames e pessoal !!

Ai vai como está o meu bashrc funcionando ....
Boa sorte ,.

----------------------------------------------8<--------------
Verde="\[\\033[01;32m\]"
Laranja="\[\\033[01;33m\]"
Ciano="\[\\033[01;36m\]"
CianoLight="\[\\033[36m\]"
Azul="\[\\033[01;34m\]"
Normal="\[\\033[0m\]"

PS1="$Normal$Ciano\u $normal$Verde\w$Ciano>$Normal "

if [ $TERM = xterm-color ]; then
 PS1="$Normal$Laranja\u@\h $Normal$Verde\w$Laranja>$Normal
\[\033]0;\u@\w\007\]
"
fi

if [ $TERM = xterm ]; then
 PS1="$Normal$Ciano\u@\h $normal$Verde\w$Ciano>$Normal
\[\033]0;\u@\w\007\]"

fi

export PS1

-----------------8<-----------------------------------------


On Wed, 21 Jun 2000, Djames Suhanko wrote:

>#)Olá pessoal !
>#)  O problema deve ser simples, mas eu nao faço mais ideia do que possa
>#)ser. Alterei a PS1, mas está dando um erro. Quando estoura a linha,
>#)inves de pular, está escrevendo sobre o path do inicio da linha. Por
>#)favor, se alguem puder me dar uma luz, abaixo segue a linha do PS1, do
>#)jeito que está em meu bashrc global.
>#)PS1="[\u@\h:[$(echo -e "\\033[31m§\033[0m") $(echo -e
>#)"\\033[37;1m\w\033[0m") $(echo -e "\\033[31m§\033[0m")]\\$ "
>#)( tudo numa linha só)
>#)  Já agradeço antecipadamente !!
>#)
>#)
>#)S        l  S         t    *     Djames Suhanko
>#)  h    l      c     p      *
>#)    e           r i        *
>#)  h    l      c     p      *   Linux User - 158760
>#)S        l  S         t    *
>#)
>#)
>#)
>#)------------------------------------------------------------------------
>#)Make new friends, find the old at Classmates.com:
>#)http://click.egroups.com/1/5530/4/_/_/_/961567084/
>#)------------------------------------------------------------------------
>#)
>#)Inscrição:     address@hidden
>#)
>#)Sair da lista: address@hidden
>#)
>#)Banco Dados:   http://www.egroups.com/group/shell-script
>#)

-----------------------------------------------------------
Leslie Harlley Watter                address@hidden 

On Windows I always felt limited by software, vendors, etc.
     On UNIX, the only limit I found is my knowledge.
-----------------------------------------------------------




reply via email to

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