zsh: add scprit for downloading zsh plugins
authorPeng Li <seudut@gmail.com>
Thu, 25 Dec 2014 17:32:17 +0000 (01:32 +0800)
committerPeng Li <seudut@gmail.com>
Thu, 25 Dec 2014 17:32:17 +0000 (01:32 +0800)
zsh/.gitignore [new file with mode: 0644]
zsh/plugins/git_install.pl [new file with mode: 0755]
zsh/plugins/git_lists [new file with mode: 0644]

diff --git a/zsh/.gitignore b/zsh/.gitignore
new file mode 100644 (file)
index 0000000..1ad5443
--- /dev/null
@@ -0,0 +1,3 @@
+plugins/*
+!plugins/git_lists
+!plugins/git_install.pl
diff --git a/zsh/plugins/git_install.pl b/zsh/plugins/git_install.pl
new file mode 100755 (executable)
index 0000000..3b63e0f
--- /dev/null
@@ -0,0 +1,17 @@
+#!/usr/bin/perl -w
+#
+my $filename = "git_lists";
+
+my %hash=();
+
+open FILE, "$filename";
+while (<FILE>){
+       chomp;
+       my ($name, $url) = split;
+       $hash{$name} = $url;
+}
+close FILE;
+
+foreach (values %hash) {
+       system "git clone " . $_;
+}
diff --git a/zsh/plugins/git_lists b/zsh/plugins/git_lists
new file mode 100644 (file)
index 0000000..a112d9e
--- /dev/null
@@ -0,0 +1 @@
+zsh-syntax-highlighting git://github.com/zsh-users/zsh-syntax-highlighting.git