Hacker News new | past | comments | ask | show | jobs | submit login

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?




You need to wrap the escapes in \[ \] to tell bash (actually readline) that these characters do not advance the cursor when printed.


I had it set up on the client side (putty on Windows, terminal on OS X)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: