89luca89 / distrobox

Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
https://distrobox.it/
GNU General Public License v3.0
9.43k stars 385 forks source link

shell prompt no longer differentiates when inside container #1369

Closed camckay closed 2 months ago

camckay commented 2 months ago

Describe the bug I assume this is related to d626559

Now when entering a container there is no longer any change to the shell prompt, making it impossible to tell when you are actually in a container.

To Reproduce Simply upgrade to 1.7.2. Issue occurred both in Arch (distro package) and Debian (download).

Expected behavior Some sort of visual indication at the prompt that you are in a container and, preferably, which container. Previously it changed the host name to the container name. Now it simply shows the exact same prompt as the host.

Desktop (please complete the following information):

89luca89 commented 2 months ago

Yes this is now the new behaviour

If you don't have cutom-prompts, then it will be like:

image

If you use a custom prompt, you need to use $CONTAINER_ID instead of \h or $HOSTNAME this is retro-compatible with containers created previously