summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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