I use the following alias in .zshrc
on Arch Linux to git pull
all repositories in a directory in parallel:
alias multipull="find . -maxdepth 5 -name .git -type d | rev | cut -c 6- | rev | parallel -j64 'echo -n {}... && git -C {} pull'"
This works fine when the gnome-keyring is already unlocked but when it is not, it will prompt for each repository separately.
Ideas
- get GNU parallel to execute the first one serially and only then continue
- manually trigger the GNOME keyring unlock window (I found several solutions on StackOverflow for Ubunutu but none for Arch Linux) and then
&&
it with the existing code
But other approaches are welcome as well. However I am not looking for a way to execute it serially. While that solves the problem it is much slower.
P.S.: Opened an issue at https://gitlab.gnome.org/GNOME/gnome-keyring/-/issues/102.