I prefer not to have a lot of text in my bash as it can get unreadable quickly. For that reason I have learned a small trick to shorten the bash line.

I prefer the format (environment) (dirname)$.

To use it once, simply copy the following line into the bash: PS1='\W\$ '.

However it was annoying to do it each time I started a new bash, so I inserted it to the ~/.bashrc in order to make it persistent (however, only for VSCode program).

Open the .bashrc file: nano ~/.bashrc and insert the following lines:

1
2
3
if [ "$TERM_PROGRAM" = "vscode" ]; then
  PS1='${debian_chroot:+($debian_chroot)}\W\$ '
fi