8 my $home = $ENV{'HOME'};
9 my $zshDir = dirname abs_path(__FILE__);
10 my $zshrc = $zshDir . "/zshrc";
12 die "~/.zsh or ~/.zshrc exist. Backup them first.\n" if -e "$home/.zsh" or -e "$home/.zshrc";
15 my $zshsyntaxDir = $zshDir . "plugins/zsh-syntax-highlighting";
17 if (not -e $zshsyntaxDir) {
18 print " clone submoduells\n ";
19 ! system "git submodule init" or die $!;
20 ! system "git submodule update" or die $!;
22 print "zsh syntax submodule already exists.\n";
25 print `ln -s $zshDir $home/.zsh`;
26 print `ln -s $zshrc $home/.zshrc`;
28 print "Done\n" unless $?;