Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rurounijones
on Feb 28, 2013
|
parent
|
context
|
favorite
| on:
How I Fired Myself
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?
mgedmin
on March 5, 2013
|
next
[–]
You need to wrap the escapes in \[ \] to tell bash (actually readline) that these characters do not advance the cursor when printed.
protomyth
on Feb 28, 2013
|
prev
[–]
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:
Did you change the $PS1 variable? Can you share your config?