Skip to content

Instantly share code, notes, and snippets.

View dedelala's full-sized avatar
🐈

Esme Lamb dedelala

🐈
  • Narrm
View GitHub Profile
@dedelala
dedelala / zsh-prompt-color-swatch.sh
Created February 27, 2018 23:34
a color swatch for figuring out your zsh prompt
#!/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 February 14, 2018 02:03
delete all your docker images
#!/bin/bash
while ids=$(docker image ls -q) && [[ -n "$ids" ]]; do
while read -r id; do
docker image rm -f "$id"
done <<< "$ids"
done