From 7067668e10859ce187a20a0892c4144c31385de9 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Wed, 12 Oct 2022 23:21:29 +0100 Subject: [PATCH] Add * to prompt if in flatpak --- roles/home-cli/files/profile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/home-cli/files/profile b/roles/home-cli/files/profile index 726420c..081e2f9 100644 --- a/roles/home-cli/files/profile +++ b/roles/home-cli/files/profile @@ -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