Skip to content

Commit

Permalink
fix(unicorn-{mobile,desktop}-git): include bashrc (#4201)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elsie19 authored Aug 11, 2023
1 parent caee59f commit f09968f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/unicorn-desktop-git/unicorn-desktop-git.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
7 changes: 7 additions & 0 deletions packages/unicorn-mobile-git/unicorn-mobile-git.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit f09968f

Please sign in to comment.