aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2018-08-07 22:33:09 +0300
committerDominik Ritter <dritter03@googlemail.com>2018-08-07 22:33:09 +0300
commit9cf76f99a548a9c51c2a9cc65ecadfd5353afa23 (patch)
tree77d7e28ca6f43fa018a45ae56ef8daf1396ae478
parentbf9082bea9f8912a028b660db5084e659d9973a8 (diff)
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.
-rwxr-xr-xfunctions/colors.zsh8
1 files changed, 2 insertions, 6 deletions
diff --git a/functions/colors.zsh b/functions/colors.zsh
index b94258a5..41223dd2 100755
--- a/functions/colors.zsh
+++ b/functions/colors.zsh
@@ -28,12 +28,8 @@ function termColors() {
# get the proper color code if it does not exist as a name.
function getColor() {
- # no need to check numerical values
- if [[ "$1" = <-> ]]; then
- if [[ "$1" = <8-15> ]]; then
- 1=$(($1 - 8))
- fi
- else
+ # If Color is not numerical, try to get the color code.
+ if [[ "$1" != <-> ]]; then
# named color added to parameter expansion print -P to test if the name exists in terminal
local named="%K{$1}"
# https://misc.flogisoft.com/bash/tip_colors_and_formatting