feat: update zsh prompt and neon color8
This commit is contained in:
@@ -47,7 +47,7 @@ Apex is not about pretty colors; it is about signal clarity.
|
||||
| 5 | Magenta | `#9d00ff` | `#7a3cff` |
|
||||
| 6 | Cyan | `#00eaff` | `#007a88` |
|
||||
| 7 | White/Fg | `#ededed` | `#f5f5f5` |
|
||||
| 8 | BrBlack | `#262626` | `#737373` |
|
||||
| 8 | BrBlack | `#737373` | `#737373` |
|
||||
| 9 | BrRed | `#ff8899` | `#ff4d6d` |
|
||||
| 10 | BrGreen | `#2bffb2` | `#33d6a6` |
|
||||
| 11 | BrYellow | `#ffd24d` | `#ffbf40` |
|
||||
|
||||
@@ -24,6 +24,7 @@ Apex Neon is a high-contrast dark theme built for terminals, editors, and system
|
||||
| `#050505` | Void Deep | Main window backgrounds, terminal background. |
|
||||
| `#141414` | Dark Surface | Inputs, inactive tabs, widget backgrounds. |
|
||||
| `#262626` | Light Surface | Separators, scroll tracks, inactive borders. |
|
||||
| `#404040` | Stealth | Comments, ignored text, suppressed hints. |
|
||||
| `#737373` | Muted Text | Comments, subtitles, inactive labels. |
|
||||
|
||||
**Rule:** depth comes from contrast, not brightness.
|
||||
@@ -74,7 +75,7 @@ Bright colors represent **escalation**, not decoration.
|
||||
|
||||
| Slot | Name | Hex | Meaning |
|
||||
|---|---|---|---|
|
||||
| color8 | BrBlack | `#262626` | UI borders / separators |
|
||||
| color8 | BrBlack | `#737373` | Muted text / suggestions |
|
||||
| color9 | BrRed | `#ff8899` | **Alerts** (Distinguishable from Cursor) |
|
||||
| color10 | BrGreen | `#2bffb2` | Active success / completion |
|
||||
| color11 | BrYellow | `#ffd24d` | Urgent warning |
|
||||
|
||||
@@ -38,7 +38,7 @@ ansi:
|
||||
white: "#ededed"
|
||||
|
||||
bright: # Escalation only
|
||||
black: "#262626"
|
||||
black: "#737373"
|
||||
red: "#ff8899"
|
||||
green: "#2bffb2"
|
||||
yellow: "#ffd24d"
|
||||
|
||||
@@ -54,7 +54,7 @@ APEX[SHOW_VCS]=1
|
||||
APEX[SHOW_INTEL]=1
|
||||
APEX[SHOW_JOBS]=1
|
||||
APEX[SHOW_RO]=1
|
||||
APEX[GIT_AHEAD_BEHIND]=0
|
||||
APEX[GIT_AHEAD_BEHIND]=1
|
||||
|
||||
# Ops commands (also match wrappers like sudo/doas/command)
|
||||
APEX[OPS_RE]='^((sudo|doas|command)[[:space:]]+)*((pacman|yay|paru|apt|dnf|brew|systemctl|docker|kubectl|helm|git))([[:space:]]|$)'
|
||||
@@ -189,10 +189,12 @@ apex_git_update() {
|
||||
|
||||
# Upstream (earned ✓)
|
||||
if command git rev-parse --abbrev-ref --symbolic-full-name @{u} &>/dev/null; then
|
||||
local counts
|
||||
local counts behind ahead
|
||||
counts="$(command git rev-list --left-right --count @{u}...HEAD 2>/dev/null)" || return
|
||||
apex_git_behind="${counts%% *}"
|
||||
apex_git_ahead="${counts##* }"
|
||||
local IFS=$' \t'
|
||||
read -r behind ahead <<<"$counts"
|
||||
apex_git_behind="${behind:-0}"
|
||||
apex_git_ahead="${ahead:-0}"
|
||||
|
||||
if (( apex_git_dirty_wt == 0 && apex_git_dirty_ix == 0 )) && [[ -z "$apex_git_op" ]]; then
|
||||
[[ "$apex_git_behind" == "0" && "$apex_git_ahead" == "0" ]] && apex_git_up_ok=1
|
||||
@@ -217,7 +219,7 @@ apex_identity() {
|
||||
fi
|
||||
elif (( is_ssh )); then
|
||||
color="${C[CYAN]}"
|
||||
label="${I[SSH]} %n @%m"
|
||||
label="${I[SSH]} %n@%m"
|
||||
else
|
||||
return 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user