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.
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.
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.
\u
inPS1
is the username, so set aPS1
without it, or edit your currentPS1
to remove it. – muru Nov 02 '17 at 05:34