Re:Bash PS1 Generator
by BearOso on Thursday June 24, 2021 @10:00PM
(#27626368)
You need to add some \[ and \] around the escape codes to tell the shell they’re non-printing characters. Otherwise, things like line-wrapping don’t work right. It’s not a problem because of your \n makes it irrelevant, but just a heads up for the future.
[ Parent
| on HN ]
There are no comments on this comment yet.