From eac0f1c0d14a9c3ac33cefb8eed82fe6f6ea9849 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Wed, 2 Oct 2019 11:49:11 +0200
Subject: Include vim configuration
---
.local/bin/vimbundle | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100755 .local/bin/vimbundle
(limited to '.local/bin')
diff --git a/.local/bin/vimbundle b/.local/bin/vimbundle
new file mode 100755
index 0000000..27406fe
--- /dev/null
+++ b/.local/bin/vimbundle
@@ -0,0 +1,23 @@
+#! /usr/bin/env perl6
+
+#| Update installed bundles for vim.
+sub MAIN ()
+{
+ my $bundletab = $*HOME.add(".vim/bundletab");
+ my $bundledir = $*HOME.add(".vim/bundle");
+
+ die "No bundletab!" unless $bundletab.e;
+
+ for $bundletab.lines.grep(!*.starts-with("#")) {
+ my ($name, $repo, $branch) = $_.words;
+
+ if (!$bundledir.add($name).d) {
+ chdir $bundledir;
+ run « git clone --single-branch --branch "$branch" --depth 1 "$repo" "$name" »;
+ }
+
+ chdir $bundledir.add($name);
+ run « git switch "$branch" »;
+ run « git pull origin "$branch" »;
+ }
+}
--
cgit v1.1