[3] Comentário enviado por
eltonbaroncello em 26/03/2009 - 10:35h:
funcionou aqui também mas detalhe, meu arquivo .bashrc (debian 5 lenny) veio mais completo e a descomentar foi a 39. segue o trexo de código de .bashrc
36 # uncomment for a colored prompt, if the terminal has the capability; turned
37 # off by default to not distract the user: the focus in a terminal window
38 # should be on the output of commands, not on the prompt
39 force_color_prompt=yes
40
41 if [ -n "$force_color_prompt" ]; then
42 if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
43 # We have color support; assume it's compliant with Ecma-48
44 # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
45 # a case would tend to support setf rather than setaf.)
46 color_prompt=yes
47 else
48 color_prompt=
49 fi
50 fi
51
52 if [ "$color_prompt" = yes ]; then
53 PS1='${debian_chroot:+($debian_chroot)}\[{COMENTARIO}33[01;32m\]\u@\h\[{COMENTARIO}33[00m\]:\[{COMENTARIO}33[01;34m\]\w\[{COMENTARIO}33[00m\]\$ '
54 else
55 PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
56 fi
57 unset color_prompt force_color_prompt
[4] Comentário enviado por
ulyssis em 26/08/2009 - 19:56h:
debian 5
editar .bashrc dentro do home;
# vi /root/.bashrc
descomentar as linhas
export LS_OPTIONS='--color=auto'
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
[]s
ulyssis