summaryrefslogtreecommitdiff
path: root/home-manager/sh/colors.nix
blob: f25a02f4b36ac965bb99b68af759f370be1f8899 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ pkgs }:

pkgs.writeShellScriptBin "colors" ''
  space="    "

  output=""

  for l in $(printf "40\n100"); do

    for i in $(seq $l $((l + 9))); do
      output="$output\033[0;''${i}m$space"
    done

    output="$output\033[0m\n"
  done

  printf "$output"
''
Software created with 💖