summaryrefslogtreecommitdiff
path: root/goremote
blob: 1a652caa4b24b0bcd26a90f660daa627c220c250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
set -euxo pipefail

repos=(~/org ~/bin ~/cfg ~/dot-emacs)

echo "pushing lithium"
ssh -qt ben@dev.simatime.com <<'EOF'
repos=(~/org ~/bin ~/cfg ~/dot-emacs)
for r in ${repos[@]}
do
    git -C $r push
done
EOF

echo "pulling"
for r in ${repos[@]}
do
  git -C $r fetch
done

# maybe:
#nix-collect-garbage -d
#nix-channel --update
#NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH home-manager switch