Un buen promt para .bashrc

By 6 de agosto de 2006 Linux No Comments

Hola,

Os presento un buen script para tener un bash bonito:

if [ `id -u` -eq 0 ]; then
PS1="[\033[0;33m][\t] [\033[0;37m][\033[1;32m]\u[\033[0;37m]@[\033[0;32m]\h[\033[0;37m]:[\033[0;36m]\w[\033[0;37m]#[\033[0;m] "
# elif [ "$BASH" ]; then
else
PS1="[\033[0;33m][\t] [\033[0;37m][\033[1;32m]\u[\033[0;37m]@[\033[0;32m]\h[\033[0;37m]:[\033[0;36m]\w[\033[0;37m]>[\033[0;m] "
# else
# PS1='Welcomido $ '
fi

PS2='> '
ignoreeof=0
export PS1 PS2


Solusan

Leave a Reply

Your email address will not be published.