Skip to content

Instantly share code, notes, and snippets.

View theetrain's full-sized avatar
💻
Making the symbols work

Enrico Sacchetti theetrain

💻
Making the symbols work
View GitHub Profile
@ahmadnassri
ahmadnassri / git-status-all.sh
Last active November 3, 2018 17:34
run `git status` on all sub directories
#!/usr/bin/env bash
find . -mindepth 1 -maxdepth 1 -type d -print0 | xargs -0 -I {} bash -c 'echo -e "$(if [[ -z $(git -C {} status -s) ]]; then echo "\e[32m✔"; else echo "\e[31m✖"; fi) $(basename {})"'