How to shorten terminal Username?



Is there a way to make the username in the terminal shorter?
The terminal username is displaying as “ubuntu@ my username -the name of the workspace” and then a string of numbers and I don’t know why. It did not display like this at first and only started when I made a new terminal. This extra long username in the terminal is getting in the way when I try to put in a command and is making simple commands take more than one line or displaying things awkwardly.


There is.

That site allows you to make a custom prompt, with any colors you want. Paste the generated string into the end of ~/.bashrc

I usually go for this style:
username@directory_basename >


Amazing all the choices you have for your prompt! This website is life changing :open_mouth: