From 231becf1caddc267df29eed9844197861d8914cc Mon Sep 17 00:00:00 2001 From: Neil Voss Date: Fri, 16 Jan 2026 14:20:28 -0600 Subject: [PATCH] List command now marks active account (cmd_list at line 112): - Added load_state call to get the current account name - Active account shows * prefix - Other accounts show - prefix --- codex-accounts.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/codex-accounts.sh b/codex-accounts.sh index 8fdc936..ddd7bde 100644 --- a/codex-accounts.sh +++ b/codex-accounts.sh @@ -111,11 +111,17 @@ resolve_current_name_or_prompt() { # ------------- commands ------------- cmd_list() { ensure_dirs + load_state shopt -s nullglob local any=0 for f in "$DATA_DIR"/*.zip; do any=1 - echo " - $(basename "${f%%.zip}" .zip)" + local name; name="$(basename "${f%%.zip}" .zip)" + if [[ "$name" == "${CURRENT:-}" ]]; then + echo " * $name" + else + echo " - $name" + fi done [[ $any -eq 0 ]] && echo "(no accounts saved yet)" }