dot

packages and services management
Log | Files | Refs | README

commit dc09b354ac4f19e8810eacba2c45a02979c86c5c
parent 7d311b2742319956f30eef79bd45df85f1c3f00d
Author: josuah <mail@josuah.net>
Date:   Fri,  4 Nov 2016 15:07:01 -0400

Made config-git asyncronous

Diffstat:
Mbin/config-git | 16+++++++++++-----
Mgit/projects | 16+++++++---------
2 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/bin/config-git b/bin/config-git @@ -1,10 +1,16 @@ -# Clone projects git repository to ~/Projects +# Clone git repos from "$CONFIG/git/projects" list -cd Projects +PROJECTS="$HOME/Projects" + +mkdir -p "$PROJECTS" +cd "$PROJECTS" sed 's/^[[:space:]]*#.*//; /^[[:space:]]*$/ d' "$CONFIG/git/projects" | - while read recository location + while read url dir do - mkdir -p "${location%/*}" - git clone --recursive $repository $location + [ "${dir}" ] && mkdir -p "${dir%/*}" + printf 'cloning %s\n' "${url##*/}" + nohup git clone -q "$url" $dir 2> /dev/null & done + +printf 'still running in the background' diff --git a/git/projects b/git/projects @@ -1,12 +1,10 @@ http://github.com/josuah/josuah.github.io -http://github.com/josuah/Notes ~/Notes http://github.com/josuah/iirc +http://github.com/josuah/cgr +http://github.com/josuah/barkdown +http://github.com/josuah/Notes ../Notes http://github.com/josuah/iomenu -http://github.com/josuah/ -http://github.com/josuah/ -http://github.com/josuah/ -http://github.com/josuah/ -http://github.com/josuah/ -http://github.com/josuah/ -http://github.com/josuah/ -http://github.com/josuah/ +http://github.com/josuah/vis +http://github.com/josuah/fungus-vs-pathogen +http://github.com/josuah/miniwi +http://github.com/josuah/drawille