Prompt for git in Hawolex

- Add PS1_GIT toggle for Hawolex

- Update installers and context
This commit is contained in:
2026-01-24 13:34:43 +00:00
parent e56aecd1c0
commit d0cb724706
4 changed files with 36 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ season_choice=""
style_choice="aurora"
contest_layout="day-time-user"
holiday_choice="christmas"
git_choice="0"
if [[ -t 0 ]]; then
style_pack="standard"
echo "PS1 mode:"
@@ -138,6 +139,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
@@ -164,6 +173,9 @@ chmod 0644 "$SEASON_FILE"
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
} > "$STYLE_FILE"
chmod 0644 "$STYLE_FILE"