Last Updated: February 25, 2016
·
983
· mehikmat

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