0

My ubuntu terminal is opening as "gdhobe@vfroot-Thinkpad-T440:~$" I want to open it as "vfroot-Thinkpad-T440:~$"

Usually terminal opens as vfroot-Thinkpad-T440:~$

How this issue could be solved.

muru
  • 193,181
  • 53
  • 473
  • 722

1 Answers1

1

In terminal do:

printf '\nPS1="\h:\w$"\n' >> ~/.bashrc 

then

source ~/.bashrc

and it's done. Note that this solution is very simple one - this doesn't include colorizing the prompt.

Sergiy Kolodyazhnyy
  • 103,293
  • 19
  • 273
  • 492