mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-03-03 14:32:43 +02:00
Fix bright colors
Remove old code that set bright colors equal to normal colors. This code was ancient and led to bright colors being unusable. The code originates from 0e37d8ef865daddd6af02ba78b4a3bb86fd5917e.
This commit is contained in:
parent
93324c0600
commit
beacb0ad35
@ -323,12 +323,6 @@ function foregroundColor() {
|
||||
function getColorCode() {
|
||||
# Check if given value is already numerical
|
||||
if [[ "$1" = <-> ]]; then
|
||||
# ANSI color codes distinguish between "foreground"
|
||||
# and "background" colors. We don't need to do that,
|
||||
# as ZSH uses a 256 color space anyway.
|
||||
if [[ "$1" = <8-15> ]]; then
|
||||
echo -n $(($1 - 8))
|
||||
else
|
||||
echo -n "$1"
|
||||
fi
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user