Last Updated: February 25, 2016
·
11.03K
· felclef

Z Shell colors!

Behold the full of color and sparkle 256 colors cheat code!

# colors, a lot of colors!
function clicolors() {
    i=1
    for color in {000..255}; do;
        c=$c"$FG[$color]$color✔$reset_color  ";
        if [ `expr $i % 8` -eq 0 ]; then
            c=$c"\n"
        fi
        i=`expr $i + 1`
    done;
    echo $c | sed 's/%//g' | sed 's/{//g' | sed 's/}//g' | sed '$s/..$//';
    c=''
}

Call clicolors and use it within the $FG[] var!

Now, bear my color blast!

Picture

[]