summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toast.cafe>2020-02-14 19:19:30 -0500
committerChloe Kudryavtsev <toast@toast.cafe>2020-02-14 19:19:30 -0500
commit5fef9330f176acd7bf73a292abe48557de39123d (patch)
treeaa9448d71270844fc14b9acc47cd986a5007eabf
parentMerge commit '858a4a31a251d0eab21dffb96776aca007dafb07' as 'dot_local/share/t... (diff)
subtrees: init maintenance script
-rw-r--r--.chezmoiignore1
-rw-r--r--update-subtrees.zsh10
2 files changed, 11 insertions, 0 deletions
diff --git a/.chezmoiignore b/.chezmoiignore
index cbbf4c0..cc002c4 100644
--- a/.chezmoiignore
+++ b/.chezmoiignore
@@ -1 +1,2 @@
UNLICENSE
+update-subtrees.zsh
diff --git a/update-subtrees.zsh b/update-subtrees.zsh
new file mode 100644
index 0000000..ead932f
--- /dev/null
+++ b/update-subtrees.zsh
@@ -0,0 +1,10 @@
+#!/bin/zsh
+
+subtrees=(
+ dot_local/share/toasty st:toasty-zsh
+)
+
+for key val in ${(kv)subtrees}
+do
+ chezmoi source -- subtree pull -P $key $val master --squash
+done