Article 5DCB5 [PS1] prompt misaligned

[PS1] prompt misaligned

by
thomasbb
from LinuxQuestions.org on (#5DCB5)
When I go back in the command history, if a command is long, it shortens the prompt by 14 characters whatever the directory. Here is my PS1:
Code:PS1="" # reset
PS1="$PS1\[\e[0m\]\[\e[03;32m\]\u" # user
PS1="$PS1\[\e[0m\]\[\e[01;35m\]@" # separator
PS1="$PS1\[\e[0m\]\[\e[01;36m\]\h" # host
PS1="$PS1\[\e[0m\]\[\e[01;35m\]:" # separator
PS1="$PS1\[\e[0m\]\[\e[48;5;95;38;5;214m\D{%d.%m@%H.%M.%S}\]" # date
PS1="$PS1\[\e[0m\]\[\e[01;35m\]:" # separator
PS1="$PS1\[\e[0m\]\[\e[01;34m\]\w" # path
PS1="$PS1\[\e[0m\]\[\e[01;35m\]:" # separator
PS1="$PS1\[\e[0m\]\[\e[01;37m\]$?" # last error code
PS1="$PS1\[\e[0m\]\[\e[01;35m\]:\$\[\e[00m\] " # endingAny idea what goes wrong?latest?d=yIl2AUoC8zA latest?i=7b7F-RkmQ2Q:1mJoaoMf71Q:F7zBnMy latest?i=7b7F-RkmQ2Q:1mJoaoMf71Q:V_sGLiP latest?d=qj6IDK7rITs latest?i=7b7F-RkmQ2Q:1mJoaoMf71Q:gIN9vFw7b7F-RkmQ2Q
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments