new script: sane-git-init
This commit is contained in:
parent
65777c70ad
commit
fac661af15
|
@ -27,6 +27,7 @@ resholve.mkDerivation {
|
||||||
duplicity
|
duplicity
|
||||||
file
|
file
|
||||||
findutils
|
findutils
|
||||||
|
git
|
||||||
gnugrep
|
gnugrep
|
||||||
gnused
|
gnused
|
||||||
gocryptfs
|
gocryptfs
|
||||||
|
@ -75,6 +76,7 @@ resholve.mkDerivation {
|
||||||
# list of programs which *can* or *cannot* exec their arguments
|
# list of programs which *can* or *cannot* exec their arguments
|
||||||
execer = with pkgs; [
|
execer = with pkgs; [
|
||||||
"cannot:${duplicity}/bin/duplicity"
|
"cannot:${duplicity}/bin/duplicity"
|
||||||
|
"cannot:${git}/bin/git"
|
||||||
"cannot:${gocryptfs}/bin/gocryptfs"
|
"cannot:${gocryptfs}/bin/gocryptfs"
|
||||||
"cannot:${ifuse}/bin/ifuse"
|
"cannot:${ifuse}/bin/ifuse"
|
||||||
"cannot:${iwd}/bin/iwctl"
|
"cannot:${iwd}/bin/iwctl"
|
||||||
|
|
14
pkgs/sane-scripts/src/sane-git-init
Executable file
14
pkgs/sane-scripts/src/sane-git-init
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
# initialize a repository with each of my machines configured as remotes.
|
||||||
|
# it's assumed each machine stores the repo at the same fs path
|
||||||
|
|
||||||
|
path=$PWD
|
||||||
|
|
||||||
|
git init
|
||||||
|
git remote add desko "colin@desko:$path"
|
||||||
|
git remote add lappy "colin@lappy:$path"
|
||||||
|
git remote add moby "colin@moby:$path"
|
||||||
|
git remote add servo "colin@servo:$path"
|
Loading…
Reference in New Issue
Block a user