Add * to prompt if in flatpak
This commit is contained in:
parent
31eb9fde19
commit
7067668e10
1 changed files with 6 additions and 1 deletions
|
@ -76,7 +76,12 @@ then
|
||||||
bind 'set enable-bracketed-paste off'
|
bind 'set enable-bracketed-paste off'
|
||||||
export BASH_ENV="$HOME/.bashrc"
|
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" ]
|
elif [ -n "$ZSH_VERSION" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue