This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
echo -n " " | |
for i in $(seq -f "%03g" 0 255); do | |
s="%K{$i} %k%F{$i} $i%K{0} $i%K{16} $i%k%f " | |
echo -n ${(%)s} | |
if [[ $i -gt 0 ]] && [[ $(( ($i - 3) % 6 )) == 0 ]]; then | |
echo | |
fi | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while ids=$(docker image ls -q) && [[ -n "$ids" ]]; do | |
while read -r id; do | |
docker image rm -f "$id" | |
done <<< "$ids" | |
done |