Remove demo references and add theme gallery

This commit is contained in:
2026-01-24 19:26:21 +00:00
parent dbe1843415
commit a7c88d772e
7 changed files with 74 additions and 106 deletions

View File

@@ -90,7 +90,7 @@ _ps1_season() {
}
# Style selection (aurora/neon/forge/circuit/mono/git/hawolex + custom pack)
# PS1_STYLE=aurora|neon|forge|circuit|mono|git|hawolex|hawolexv2|radar|synthwave|noir|topo|glitch|arcticfire|acidlime|demo
# PS1_STYLE=aurora|neon|forge|circuit|mono|git|hawolex|hawolexv2|radar|synthwave|noir|topo|glitch|arcticfire|acidlime
# PS1_STYLE_PACK=standard|contest|holiday|custom
# PS1_CONTEST_LAYOUT=day-time-user|user-time|time-user|day-time
# PS1_HOLIDAY=christmas|easter|halloween|valentine|thanksgiving|newyear
@@ -211,31 +211,6 @@ _ps1_path_topo() {
printf "%s" "$out"
}
_ps1_demo_next() {
local styles=(
"aurora" "neon" "forge" "circuit" "mono" "git" "hawolex" "hawolexv2"
"aurora" "aurora" "aurora" "aurora" "aurora" "aurora"
"radar" "synthwave" "noir" "topo" "glitch" "arcticfire" "acidlime"
)
local packs=(
"standard" "contest" "contest" "contest" "contest" "contest" "contest" "contest"
"holiday" "holiday" "holiday" "holiday" "holiday" "holiday"
"custom" "custom" "custom" "custom" "custom" "custom" "custom"
)
local holidays=(
"" "" "" "" "" "" "" ""
"christmas" "easter" "halloween" "valentine" "thanksgiving" "newyear"
"" "" "" "" "" "" ""
)
local count=${#styles[@]}
local idx="${PS1_DEMO_INDEX:--1}"
idx=$(( (idx + 1) % count ))
PS1_DEMO_INDEX="$idx"
export PS1_DEMO_INDEX
__PS1_DEMO_STYLE="${styles[$idx]}"
__PS1_DEMO_PACK="${packs[$idx]}"
__PS1_DEMO_HOLIDAY="${holidays[$idx]}"
}
# ---- Load Git prompt helper (best effort) ----
__try_source_git_prompt() {
@@ -972,14 +947,6 @@ _ps1_update() {
__PS1_HOLIDAY="$(_ps1_holiday)"
__PS1_STYLE="$(_ps1_style)"
__PS1_GIT="${PS1_GIT:-0}"
if [[ "$__PS1_STYLE" == "demo" ]]; then
_ps1_demo_next
__PS1_STYLE="$__PS1_DEMO_STYLE"
__PS1_STYLE_PACK="$__PS1_DEMO_PACK"
if [[ "$__PS1_STYLE_PACK" == "holiday" && -n "$__PS1_DEMO_HOLIDAY" ]]; then
__PS1_HOLIDAY="$__PS1_DEMO_HOLIDAY"
fi
fi
__PS1_SYM="$(_ps1_symbol)"
__PS1_PATH="$(_ps1_path)"
if _ps1_has_nf; then __PS1_USE_NF=1; else __PS1_USE_NF=0; fi