Skip to content

Instantly share code, notes, and snippets.

Avatar

Dede Lamb dedelala

View GitHub Profile
@dedelala
dedelala / zsh-prompt-color-swatch.sh
Created Feb 27, 2018
a color swatch for figuring out your zsh prompt
View zsh-prompt-color-swatch.sh
#!/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
@dedelala
dedelala / docker-image-rm-all.sh
Created Feb 14, 2018
delete all your docker images
View docker-image-rm-all.sh
#!/bin/bash
while ids=$(docker image ls -q) && [[ -n "$ids" ]]; do
while read -r id; do
docker image rm -f "$id"
done <<< "$ids"
done
You can’t perform that action at this time.