Prompt for git in Hawolex
- Add PS1_GIT toggle for Hawolex - Update installers and context
This commit is contained in:
@@ -29,6 +29,7 @@ style_choice="aurora"
|
||||
style_pack="standard"
|
||||
contest_layout="day-time-user"
|
||||
holiday_choice="christmas"
|
||||
git_choice="0"
|
||||
if [[ -t 0 ]]; then
|
||||
echo "Install options:"
|
||||
echo " 1) PS1 only"
|
||||
@@ -162,6 +163,14 @@ if [[ -t 0 ]]; then
|
||||
""|1) style_choice="aurora" ;;
|
||||
*) echo "Invalid choice, using aurora."; style_choice="aurora" ;;
|
||||
esac
|
||||
|
||||
if [[ "$style_choice" == "hawolex" ]]; then
|
||||
read -r -p "Enable git capsule? [y/N]: " git_pick
|
||||
case "${git_pick}" in
|
||||
y|Y) git_choice="1" ;;
|
||||
*) git_choice="0" ;;
|
||||
esac
|
||||
fi
|
||||
else
|
||||
style_choice="aurora"
|
||||
fi
|
||||
@@ -243,6 +252,9 @@ if [[ "$install_ps1" -eq 1 ]]; then
|
||||
if [[ "$style_pack" == "holiday" ]]; then
|
||||
printf 'PS1_HOLIDAY=%s\n' "${holiday_choice:-christmas}"
|
||||
fi
|
||||
if [[ "$style_choice" == "hawolex" ]]; then
|
||||
printf 'PS1_GIT=%s\n' "$git_choice"
|
||||
fi
|
||||
} > /etc/ps1-style
|
||||
chmod 0644 /etc/ps1-style
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user