\[ This sequence should appear before a sequence of characters that don't move the cursor
(like color escape sequences). This allows bash to calculate word wrapping correctly.
\] This sequence should appear after a sequence of non-printing characters.
# pour le prompt...
Posté par Fab . En réponse au message bash_profile et autres.... Évalué à 3.
CRESET="\[\e[0;0m\]" CRESET_BOLD="\[\e[0;1m\]" BLUE="\[\e[0;34m\]" LBLUE="\[\e[1;34m\]" RED="\[\e[0;31m\]" LRED="\[\e[1;31m\]" MAGENTA="\[\e[0;35m\]" LMAGENTA="\[\e[1;35m\]" CYAN="\[\e[0;36m\]" LCYAN="\[\e[1;36m\]" GREEN="\[\e[0;32m\]" LGREEN="\[\e[1;32m\]" YELLOW="\[\e[1;33m\]" ORANGE="\[\e[0;33m\]" GREY="\[\e[0;37m\]" PS1="\n${CRESET_BOLD}<${LRED}\u${ORANGE}@${YELLOW}\h${CRESET_BOLD}> ${LGREEN}\W${CRESET} \$ "