main dotfiles / bin / color_palette
Eric Bower  ·  2026-08-02
 1#!/usr/bin/env bash
 2
 3colors=("Black" "Red" "Green" "Yellow" "Blue" "Magenta" "Cyan" "White" \
 4        "Bright Black" "Bright Red" "Bright Green" "Bright Yellow" \
 5        "Bright Blue" "Bright Magenta" "Bright Cyan" "Bright White")
 6for i in "${!colors[@]}"; do
 7    printf '\e[48;5;%dm %-14s\e[0m' "$i" "${colors[$i]}"
 8    (( i % 4 == 3 )) && echo
 9done
10
11# kak: filetype=sh