tide/tools/swatch.fish
2021-12-12 12:27:53 -08:00

15 lines
312 B
Fish
Executable File

#!/usr/bin/env fish
set -l height_in_lines 2
set -l width_in_chars (math --scale=0 $height_in_lines x 2.5) # 2.5 = ratio
for i in (seq $height_in_lines)
for arg in $argv
set_color -b $arg
string repeat --no-newline --count $width_in_chars ' '
set_color normal
end
echo
end