add submodule for zsh-syntax-highlighting
authorPeng Li <seudut@gmail.com>
Sat, 18 Feb 2017 05:28:03 +0000 (13:28 +0800)
committerPeng Li <seudut@gmail.com>
Sat, 18 Feb 2017 05:28:03 +0000 (13:28 +0800)
.gitmodules [new file with mode: 0644]
zsh/plugins/README.md [new file with mode: 0644]
zsh/plugins/git_install.pl [deleted file]
zsh/plugins/git_lists [deleted file]
zsh/plugins/zsh-syntax-highlighting [new submodule]

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..db76b59
--- /dev/null
@@ -0,0 +1,3 @@
+[submodule "zsh/plugins/zsh-syntax-highlighting"]
+       path = zsh/plugins/zsh-syntax-highlighting
+       url = git://github.com/zsh-users/zsh-syntax-highlighting.git
diff --git a/zsh/plugins/README.md b/zsh/plugins/README.md
new file mode 100644 (file)
index 0000000..682fa74
--- /dev/null
@@ -0,0 +1,2 @@
+The folders in this directory are git submodules. 
+Use `git submodule init` and `git submudule update` to fetch the submodules, or you can also using `git clone --recursive https://github.com/seudut/dotfiles.git` when clone the super project.
diff --git a/zsh/plugins/git_install.pl b/zsh/plugins/git_install.pl
deleted file mode 100755 (executable)
index 6d9d56e..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/perl -w
-#
-#
-my @git_lists = qw {
-    git://github.com/zsh-users/zsh-syntax-highlighting.git
-};
-#my $filename = "git_lists";
-
-print $git_lists[0];
-
-`git clone $_` foreach @git_lists;
-
-##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
deleted file mode 100644 (file)
index a112d9e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-zsh-syntax-highlighting git://github.com/zsh-users/zsh-syntax-highlighting.git
diff --git a/zsh/plugins/zsh-syntax-highlighting b/zsh/plugins/zsh-syntax-highlighting
new file mode 160000 (submodule)
index 0000000..9523d6d
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 9523d6d49cb3d4db5bd84c3cec6168a2057fe3ab