From f09968f376c2fe16be2a5a07937226646eafb19c Mon Sep 17 00:00:00 2001 From: Elsie Date: Thu, 10 Aug 2023 20:58:56 -0500 Subject: [PATCH] fix(unicorn-{mobile,desktop}-git): include bashrc (#4201) --- packages/unicorn-desktop-git/unicorn-desktop-git.pacscript | 7 +++++++ packages/unicorn-mobile-git/unicorn-mobile-git.pacscript | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/packages/unicorn-desktop-git/unicorn-desktop-git.pacscript b/packages/unicorn-desktop-git/unicorn-desktop-git.pacscript index a346410e562..319779d8277 100644 --- a/packages/unicorn-desktop-git/unicorn-desktop-git.pacscript +++ b/packages/unicorn-desktop-git/unicorn-desktop-git.pacscript @@ -69,4 +69,11 @@ post_install() { fi cp /etc/skel/.lightpad/* "${homedir}/.lightpad" papirus-folders -C violet --theme Papirus-Dark + if ! grep -Eq 'PS1=.* # Rhino' /etc/skel/.bashrc; then + cat <<"EOF" | tee -a /etc/skel/.bashrc > /dev/null +# comment to remove the `git status` checking '*' and '+' text in the prompt +export GIT_PS1_SHOWDIRTYSTATE=1 +PS1='$(__git_ps1 "(%s) ")\[\e[1m\][\[\e[38;5;82m\]\w\[\e[39m\]] \[\e[38;5;219m\]\u\[\e[38;5;231m\]@\[\e[38;5;199m\]\h \[\e[38;5;255m\]\$ \[\e[0m\]' # Rhino +EOF + fi } diff --git a/packages/unicorn-mobile-git/unicorn-mobile-git.pacscript b/packages/unicorn-mobile-git/unicorn-mobile-git.pacscript index 9be634c9f81..79c9f1e3000 100644 --- a/packages/unicorn-mobile-git/unicorn-mobile-git.pacscript +++ b/packages/unicorn-mobile-git/unicorn-mobile-git.pacscript @@ -85,4 +85,11 @@ post_install() { mkdir -p "${homedir}/.local/share" fi cp -r "/etc/skel/.local/share/onboard" "${homedir}/.local/share" + if ! grep -Eq 'PS1=.* # Rhino' /etc/skel/.bashrc; then + cat <<"EOF" | tee -a /etc/skel/.bashrc > /dev/null +# comment to remove the `git status` checking '*' and '+' text in the prompt +export GIT_PS1_SHOWDIRTYSTATE=1 +PS1='$(__git_ps1 "(%s) ")\[\e[1m\][\[\e[38;5;82m\]\w\[\e[39m\]] \[\e[38;5;219m\]\u\[\e[38;5;231m\]@\[\e[38;5;199m\]\h \[\e[38;5;255m\]\$ \[\e[0m\]' # Rhino +EOF + fi }