Flatpak prompt disappeared

When I enter in whatever flatpak application sandbox with:

flatpak run --command=sh APP-ID

I can no longer see the nice prompt which made clear I was inside the flatpak and not in my regular system.
Is it a known bug or I may have some misconfiguration?

I’m on Fedora 33 but I’m experiencing this in Fedora 32 as well for some time.

1 Like

Ooops, the error was obvious. I was redefining PS1 in my .bashrc (for git):

# https://fedoraproject.org/wiki/Git_quick_reference#Display_current_branch_in_bash
source /usr/share/git-core/contrib/completion/git-prompt.sh
export PS1='[\u@\h \W$(declare -F __git_ps1 &>/dev/null && __git_ps1 " (%s)")]\$ '

As soon as I comment these lines and reload the file, the nice prompt comes back again for any app.

Here’s an example:

$ flatpak run --command=sh org.gnome.Tau
[📦 org.gnome.Tau ~]$ 
1 Like