mirror of
https://github.com/samsonjs/config.git
synced 2026-06-24 04:59:08 +00:00
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.
This commit is contained in:
parent
e92a2eeb92
commit
968bc770e5
2 changed files with 5 additions and 1 deletions
1
Brewfile
1
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'
|
||||
|
|
|
|||
|
|
@ -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+=$'≠'
|
||||
|
|
|
|||
Loading…
Reference in a new issue