mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 21:41:57 +00: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 0e37d8ef86
.
This commit is contained in:
parent
93324c0600
commit
beacb0ad35
1 changed files with 0 additions and 6 deletions
|
@ -323,12 +323,6 @@ function foregroundColor() {
|
||||||
function getColorCode() {
|
function getColorCode() {
|
||||||
# Check if given value is already numerical
|
# Check if given value is already numerical
|
||||||
if [[ "$1" = <-> ]]; then
|
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"
|
echo -n "$1"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue