Fix two scroll auto recenter
[dotfiles.git] / zsh / install.pl
index 1aac9dd..0f42220 100755 (executable)
@@ -11,6 +11,17 @@ my $zshrc = $zshDir . "/zshrc";
 
 die "~/.zsh or ~/.zshrc exist. Backup them first.\n" if -e "$home/.zsh" or -e "$home/.zshrc";
 
+
+my $zshsyntaxDir = $zshDir . "plugins/zsh-syntax-highlighting";
+
+if (not -e $zshsyntaxDir) {
+    print " clone submoduells\n ";
+    ! system "git submodule init" or die $!;
+    ! system "git submodule update" or die $!;
+} else {
+    print "zsh syntax submodule already exists.\n";
+}
+
 print `ln -s $zshDir $home/.zsh`;
 print `ln -s $zshrc $home/.zshrc`;