summaryrefslogtreecommitdiff
path: root/playbooks.d/user-tyil
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-05-06 14:51:02 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-05-06 14:51:02 +0200
commit555e8636bffccba2aa9fb8a801c9c37d3d2c4882 (patch)
treeaff019ade26ee96289282581bc0bb4f81f2242c5 /playbooks.d/user-tyil
parent6d540b15e19d1ecc51d8dcac70cc3988d1c1ab82 (diff)
Add gittab
Diffstat (limited to 'playbooks.d/user-tyil')
-rw-r--r--playbooks.d/user-tyil/playbook.bash24
-rw-r--r--playbooks.d/user-tyil/share/gittab5
-rw-r--r--playbooks.d/user-tyil/share/gittab.d/awesome1
-rw-r--r--playbooks.d/user-tyil/share/gittab.d/bash1
-rw-r--r--playbooks.d/user-tyil/share/gittab.d/vim16
-rw-r--r--playbooks.d/user-tyil/share/gittab.d/weechat3
-rw-r--r--playbooks.d/user-tyil/share/gittab.d/zsh1
7 files changed, 51 insertions, 0 deletions
diff --git a/playbooks.d/user-tyil/playbook.bash b/playbooks.d/user-tyil/playbook.bash
index de91595..00d5e8f 100644
--- a/playbooks.d/user-tyil/playbook.bash
+++ b/playbooks.d/user-tyil/playbook.bash
@@ -20,6 +20,7 @@ playbook_sync() {
sudo
zsh
)
+ local sharedir="$BASHTARD_ETCDIR/playbooks.d/$BASHTARD_PLAYBOOK/share"
notice "$BASHTARD_PLAYBOOK" "Installing all desired utilities"
for package in "${packages[@]}"
@@ -27,6 +28,29 @@ playbook_sync() {
pkg install "$package"
done
+ grep -v '^#' "$sharedir/gittab" | while read -r tab dir
+ do
+ dir="$(config "users.tyil.home")/$dir"
+
+ grep -v '^#' "$sharedir/gittab.d/$tab" | while read -r name repo branch
+ do
+ notice "$BASHTARD_PLAYBOOK" "Updating $dir/$name"
+
+ if [[ ! -d "$dir/$name" ]]
+ then
+ git clone \
+ --single-branch \
+ --branch "$branch" \
+ --depth 1 \
+ "$repo" \
+ "$dir/$name"
+ fi
+
+ git -C "$dir/$name" checkout "$branch"
+ git -C "$dir/$name" pull "$repo" "$branch"
+ done
+ done
+
[[ $BASHTARD_COMMAND == "add" ]] && return
notice "$BASHTARD_PLAYBOOK" "Updating dotfiles"
diff --git a/playbooks.d/user-tyil/share/gittab b/playbooks.d/user-tyil/share/gittab
new file mode 100644
index 0000000..ca3b53d
--- /dev/null
+++ b/playbooks.d/user-tyil/share/gittab
@@ -0,0 +1,5 @@
+awesome .config/awesome
+bash .config/shell/vendor/bash
+vim .vim/bundle
+weechat .weechat/vendor
+zsh .config/shell/vendor/zsh
diff --git a/playbooks.d/user-tyil/share/gittab.d/awesome b/playbooks.d/user-tyil/share/gittab.d/awesome
new file mode 100644
index 0000000..6414bc8
--- /dev/null
+++ b/playbooks.d/user-tyil/share/gittab.d/awesome
@@ -0,0 +1 @@
+# Local name Remote URL Branch
diff --git a/playbooks.d/user-tyil/share/gittab.d/bash b/playbooks.d/user-tyil/share/gittab.d/bash
new file mode 100644
index 0000000..0940d13
--- /dev/null
+++ b/playbooks.d/user-tyil/share/gittab.d/bash
@@ -0,0 +1 @@
+feature-auto-completion https://github.com/scop/bash-completion.git master
diff --git a/playbooks.d/user-tyil/share/gittab.d/vim b/playbooks.d/user-tyil/share/gittab.d/vim
new file mode 100644
index 0000000..4e294f4
--- /dev/null
+++ b/playbooks.d/user-tyil/share/gittab.d/vim
@@ -0,0 +1,16 @@
+# Local name Remote URL Branch
+feature-camelcasemotion https://github.com/tyil/camelcasemotion.git master
+feature-rainbow-parenthesis https://github.com/luochen1990/rainbow master
+syntax-todo https://github.com/freitass/todo.txt-vim.git master
+syntax-hcl https://github.com/jvirtanen/vim-hcl.git main
+syntax-helm https://github.com/towolf/vim-helm master
+syntax-ledger https://github.com/ledger/vim-ledger master
+syntax-markdown https://github.com/plasticboy/vim-markdown master
+syntax-mustache https://github.com/mustache/vim-mustache-handlebars master
+syntax-raku https://github.com/raku/vim-raku.git master
+syntax-terraform https://github.com/hashivim/vim-terraform master
+syntax-toml https://github.com/cespare/vim-toml.git main
+theme-colorsbox https://github.com/mkarmona/colorsbox.git master
+theme-jellybeans https://github.com/nanotech/jellybeans.vim.git master
+theme-molokai https://github.com/tomasr/molokai.git master
+theme-codedark https://github.com/tomasiser/vim-code-dark master
diff --git a/playbooks.d/user-tyil/share/gittab.d/weechat b/playbooks.d/user-tyil/share/gittab.d/weechat
new file mode 100644
index 0000000..dfc2006
--- /dev/null
+++ b/playbooks.d/user-tyil/share/gittab.d/weechat
@@ -0,0 +1,3 @@
+# Local name Remote URL Branch
+protocol-slack https://github.com/wee-slack/wee-slack master
+protocol-matrix https://github.com/poljar/weechat-matrix master
diff --git a/playbooks.d/user-tyil/share/gittab.d/zsh b/playbooks.d/user-tyil/share/gittab.d/zsh
new file mode 100644
index 0000000..8f98e73
--- /dev/null
+++ b/playbooks.d/user-tyil/share/gittab.d/zsh
@@ -0,0 +1 @@
+feature-syntax-highlighting https://github.com/zsh-users/zsh-syntax-highlighting.git master