1
0
Fork 0

Use highlight colour from theme in die()

This commit is contained in:
tastytea 2022-04-09 22:00:57 +02:00
parent 0e631eb476
commit 6ad16cd497
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@ if [[ -v 1 && ${1} =~ '^[0-9]+$' ]]; then
fi
if [[ -v 1 ]]; then
print -Pnu2 "%B%F{201}"
local colour="201"
[[ -v zsh_theme_colours ]] && colour=${zsh_theme_colours[highlight]}
print -Pnu2 "%B%F{${colour}}"
print -u2 "${@}"
print -Pnu2 "%f%b"
fi