In Google Cloud Shell I have:
[email protected]:~ (project-name-12345)$
it takes up too much space, how to make it only
Play with that exporting the PS1, like below:
[email protected]:~ (service-exploration-labs-20430)$ export PS1='[[email protected] W]/pre> [pimball[email protected] ~]$
Also, you can follow this to have yet more fun:
Looks for the PS1 variable, in my environment the .bashrc file sources the fille /google/devshell/bashrc.google, in there is the PS1 environmental variable. You can cat this file and them customise the PS1 variable but adding it to the end of your ~/.bashrc file. This worked in my environment to remove the user component.
add this to the end of your ~/.bashrc file to give you the dollar $ prompt, you can always comment it out and source your ~/.bashrc file again if it cause you problems: export PS1=’$ ‘