darkrc/bin/farfetched

6 lines
191 B
Plaintext
Raw Normal View History

2020-01-07 16:08:33 +00:00
#!/bin/sh
2020-01-07 16:15:27 +00:00
if [ -d "$1" ]; then cd $1; fi
2020-01-07 10:08:30 +00:00
find . -type d -name '.git' \
| sed 's/\/\.git$//' \
2020-07-30 19:05:54 +00:00
| xargs -P $(nproc) -I % bash -c "echo -e 'Fetching \\033[00;31m%\\033[00m...'; cd %; git fetch"