Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
rurounijones
· 13y ago · 0 comments
I have done this on a few servers but found that it always screws up formatting of the lines in bash when they are long and you are hitting up and going back through the history.
Did you change the $PS1 variable? Can you share your config?
Comments
[–]
mgedmin
13y ago
You need to wrap the escapes in \[ \] to tell bash (actually readline) that these characters do not advance the cursor when printed.
[–]
protomyth
13y ago
I had it set up on the client side (putty on Windows, terminal on OS X)