Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I SSH into somewhere, I see something line this in the terminal: [504]%

Looking it up, looks like its my bash shell history. How can I disable this index display and show the current working directory instead?

share|improve this question
add comment

1 Answer

On the target system (the one you SSH into), find out where the bash variable PS1 is being set (grep PS1= .bash*), read man bash, the PROMPTING section, and set PS1 the way you want to.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.