Skip to content

Instantly share code, notes, and snippets.


Harry Gallagher harrygallagher4

View GitHub Profile
View coc-settings.jsonc
"npm.binPath": "/Users/harry/.asdf/installs/nodejs/12.17.0/bin/npm",
"eslint.nodePath": "/Users/harry/.asdf/installs/nodejs/12.17.0/bin/node",
"coc.preferences.bracketEnterImprove": false,
"coc.preferences.enableFloatHighlight": true,
"coc.preferences.colorSupport": true,
"coc.source.around.enable": false,
"coc.source.buffer.enable": false,
"coc.source.file.ignoreHidden": false,

Keybase proof

I hereby claim:

  • I am harrygallagher4 on github.
  • I am harryg ( on keybase.
  • I have a public key ASC0pmQNZH9F4R01u2XJgTh1_Qi7Cfid4hpDzTAvQO-yBQo

To claim this, I am signing this object:

harrygallagher4 /
Last active Oct 13, 2019
bash one-liner to pull all git repositories in the current directory
# most of this is sourced from stackoverflow answers
# git diff checks if the current directory is clean
# git remote checks if there is even a remote repo to pull from
ls | xargs -I{} sh -c '[[ -d {}/.git ]] && [[ $(git -C {} diff --shortstat 2> /dev/null | tail -n1) == "" ]] && [[ $(git -C {} remote) != "" ]] && echo {}: && git -C {} pull'