# Coloration syntaxique bash \[résolu au fil de l'eau\]

**URL:** <https://www.debian-fr.org/t/coloration-syntaxique-bash-resolu-au-fil-de-leau/92344>\
**Category:** Support Debian\
**Created:** [Mai 16, 2026, 12:08 UTC](https://www.debian-fr.org/t/coloration-syntaxique-bash-resolu-au-fil-de-leau/92344 "2026-05-16T12:08:18Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![Zargos](https://www.debian-fr.org/user_avatar/www.debian-fr.org/zargos/32/10889_2.png) [@Zargos](https://www.debian-fr.org/u/Zargos)\
**Post date:** [Mai 19, 2026, 3:48 UTC](https://www.debian-fr.org/t/coloration-syntaxique-bash-resolu-au-fil-de-leau/92344/18 "2026-05-19T15:48:11Z")

</div>

Sinon en fin de ligen, au lieu de` \$` mettre `\[#` et là tu es sur d’avoir un # à la fin

```auto
~# PS1="\[\e[01;31m\]\u@\h:\[\e[00m\](\#):\[\e[0;31m\]\w\[\e[00m\]\[# "
root@mephisto:(22):~#

```

sinon au lieu de `"` utilise `'` et là ça marche.

```auto
(22):~PS1='\[\033[01;31m\]\u@\h:\w\[\e[0;31m\]\[\033[00m\]\$ '
root@mephisto:~#

```

Faut faire attention entre les deux, l’un interprète pas l’autre 😉

---

_[View the full topic](https://www.debian-fr.org/t/coloration-syntaxique-bash-resolu-au-fil-de-leau/92344)._
