From 968bc770e51793afc8c96f7810bcea9847138a3c Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Thu, 18 Jun 2026 19:19:20 -0700 Subject: [PATCH] Add gradient powerline pill prefix to jj prompt line Marks the jj status line with a colored 'jj' powerline pill so it stands out from command output above it. Track FiraCode Nerd Font in the Brewfile since the powerline separators need a Nerd Font. --- Brewfile | 1 + zsh/functions/prompt_sjs_setup | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Brewfile b/Brewfile index fd25f39..36fbe8c 100644 --- a/Brewfile +++ b/Brewfile @@ -34,6 +34,7 @@ brew 'yt-dlp' brew 'zoxide' cask 'codex' +cask 'font-fira-code-nerd-font' cask 'grishka/grishka/neardrop' cask 'ngrok' cask 'xcodes-app' diff --git a/zsh/functions/prompt_sjs_setup b/zsh/functions/prompt_sjs_setup index 1024d9c..8cb2d08 100644 --- a/zsh/functions/prompt_sjs_setup +++ b/zsh/functions/prompt_sjs_setup @@ -306,7 +306,10 @@ prompt_sjs_scm_jj() { desc_suffix=" $pc[default]← \"$truncated\"$pc[reset]" fi - local out= + # Gradient powerline "jj" pill, marking the line as scm status (not output). + # Needs a Nerd Font for the powerline separators (U+E0B0). + local pill=$'%{\e[48;5;57;38;5;231m%} jj %{\e[0;48;5;33;38;5;57m%}\ue0b0%{\e[0;38;5;33m%}\ue0b0%{\e[0m%} ' + local out=$pill local -a prefix_flags [ -n "$conflict" ] && prefix_flags+='!' [ -n "$divergent" ] && prefix_flags+=$'≠'