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
  • 197,895
  • 55
  • 485
  • 740

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
  • 105,154
  • 20
  • 279
  • 497