Shorten the long linux terminal prompt
Only for current instance of terminal:
$ export PS1="\u@\h:\W$ "
which results to user@host:dirname$
For permanently for all terminals:
$ echo export PS1="\u@\h:\W$ " >> .bashrc && bash
Written by Hikmat Dhamee
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#