From: debian Date: Sat, 6 May 2017 15:22:12 +0000 (+0800) Subject: zshrc - fix installation issue X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=c69d522b6ccf78a3029cccf627361a6c5449483d;p=dotfiles.git zshrc - fix installation issue --- diff --git a/zsh/install.pl b/zsh/install.pl index 73b5e47..0f42220 100755 --- a/zsh/install.pl +++ b/zsh/install.pl @@ -11,21 +11,19 @@ my $zshrc = $zshDir . "/zshrc"; die "~/.zsh or ~/.zshrc exist. Backup them first.\n" if -e "$home/.zsh" or -e "$home/.zshrc"; -print `ln -s $zshDir $home/.zsh`; -print `ln -s $zshrc $home/.zshrc`; my $zshsyntaxDir = $zshDir . "plugins/zsh-syntax-highlighting"; if (not -e $zshsyntaxDir) { - die "zsh syntax highlighting not exist, abort.\n"; -} elsif (-s $zshsyntaxDir) { print " clone submoduells\n "; - chdir $zshsyntaxDir; ! 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`; + print "Done\n" unless $?;