-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2025
Joachim Ansorg edited this page Nov 12, 2021
·
6 revisions
PS1='\e[36m\$ \e(B\e[m'
PS1='\[\e[36m\]\$ \[\e(B\e[m\]'
Bash is unable to determine exactly which parts of your prompt are text and which are terminal codes. You have to help it by wrapping invisible control codes in \[..\]
(and ensuring that visible characters are not wrapped in \[..\]
).
Note: ShellCheck offers this as a helpful hint and not a robust check. Don't rely on ShellCheck to verify that your prompt is correct.
None.