mirror of
https://github.com/IlanCosman/tide.git
synced 2025-01-03 18:14:01 +03:00
Horizontally display swatches
This commit is contained in:
parent
3ab83dfcc6
commit
08ede7ed36
@ -4,11 +4,11 @@ set -l height_in_lines 2
|
||||
|
||||
set -l width_in_chars (math --scale=0 $height_in_lines x 2.5) # 2.5 = ratio
|
||||
|
||||
for arg in $argv
|
||||
for i in (seq $height_in_lines)
|
||||
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
|
||||
echo
|
||||
end
|
||||
echo
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user