8

Is any way to remove my computer name from command line prompt?

I want the prompt to look like this:

kasiya:~$

Instead of this:

kasiya@kasiya-pc:~$
12

Edit your .bashrc, change PS1 to:

PS1='\u:\w\$'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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