Add * to prompt if in flatpak

This commit is contained in:
Anthony Rose 2022-10-12 23:21:29 +01:00
parent 31eb9fde19
commit 7067668e10

View file

@ -76,7 +76,12 @@ then
bind 'set enable-bracketed-paste off'
export BASH_ENV="$HOME/.bashrc"
PS1="\[\033[01m\]\u@\h\\$\[\033[00m\] "
if [ $container = flatpak ]
then
_acp_ps1_prefix="*"
fi
PS1="\[\033[01m\]${_acp_ps1_prefix}\u@\h\\$\[\033[00m\] "
unset _acp_ps1_prefix
elif [ -n "$ZSH_VERSION" ]
then