]> git.sev.monster Git - dotfiles.git/blame - bin/colors
zshrc: update PATH generation
[dotfiles.git] / bin / colors
CommitLineData
ce127c80 1#!/bin/zsh
2attrs=(none bold dim italic underline blink undefined 'reverse video' invisible
3 strikethrough)
4colors=(default black red green yellow blue magenta cyan white)
5for ai in {0..5} {7..9}; do
6 [[ $ai == 0 ]] && a='' || a="$ai;"
7 echo "$ai: $attrs[(($ai+1))]"
8 for fi in {29..37}; do
9 [[ $fi == 29 ]] && f='' || f="$fi;"
10 echo -n ' '
11 for bi in {39..47}; do
12 [[ $bi == 39 ]] && b='' || b="$bi"
13 echo -ne "\e[$a$f$b""m${(r[7])colors[(($fi-28))]}\e[0m "
14 done
15 echo
16 done
17done
This page took 0.053045 seconds and 4 git commands to generate.