dotfiles/.config/zsh/02-colors.zsh

66 lines
1.3 KiB
Bash

#
# Color control code variables
#
declare -A fg
declare -A bg
declare -A ctrl
fg[black]=$'\033[30m'
fg[blue]=$'\033[34m'
fg[red]=$'\033[31m'
fg[green]=$'\033[32m'
fg[magenta]=$'\033[35m'
fg[cyan]=$'\033[36m'
fg[yellow]=$'\033[33m'
fg[white]=$'\033[37m'
fg[bright_black]=$'\033[90m'
fg[bright_blue]=$'\033[94m'
fg[bright_red]=$'\033[91m'
fg[bright_green]=$'\033[92m'
fg[bright_magenta]=$'\033[95m'
fg[bright_cyan]=$'\033[96m'
fg[bright_yellow]=$'\033[93m'
fg[bright_white]=$'\033[97m'
fg[reset]=$'\033[39m'
bg[black]=$'\033[40m'
bg[blue]=$'\033[44m'
bg[red]=$'\033[41m'
bg[green]=$'\033[42m'
bg[magenta]=$'\033[45m'
bg[cyan]=$'\033[46m'
bg[yellow]=$'\033[43m'
bg[white]=$'\033[47m'
bg[bright_black]=$'\033[100m'
bg[bright_blue]=$'\033[104m'
bg[bright_red]=$'\033[101m'
bg[bright_green]=$'\033[102m'
bg[bright_magenta]=$'\033[105m'
bg[bright_cyan]=$'\033[106m'
bg[bright_yellow]=$'\033[103m'
bg[bright_white]=$'\033[107m'
bg[reset]=$'\033[49m'
ctrl[reset]=$'\033[0m'
ctrl[bold]=$'\033[1m'
ctrl[faint]=$'\033[2m'
ctrl[italic]=$'\033[3m'
ctrl[underline]=$'\033[4m'
ctrl[slowblink]=$'\033[5m'
ctrl[fastblink]=$'\033[6m'
ctrl[invert]=$'\033[7m'
ctrl[hide]=$'\033[8m'
ctrl[strike]=$'\033[9m'
ctrl[nobold]=$'\033[22m'
ctrl[noitalic]=$'\033[23m'
ctrl[nounderline]=$'\033[24m'
ctrl[noblink]=$'\033[25m'
ctrl[noinvert]=$'\033[27m'
ctrl[nohide]=$'\033[28m'
ctrl[nostrike]=$'\033[29m'