X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=zsh%2Finstall.pl;h=0f42220a2f32a37b4dfeb051cb84a8e59dab4f29;hb=9387bdc8e5c4f18b9d47b2f12ccfcb386c1a5f21;hp=1aac9ddb2444451ae0221c8277764e294f4ed433;hpb=1985bb11c1859b38e5596953194e17b84693f23a;p=dotfiles.git diff --git a/zsh/install.pl b/zsh/install.pl index 1aac9dd..0f42220 100755 --- a/zsh/install.pl +++ b/zsh/install.pl @@ -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`;