From 01276d6a1c39250bdd4f47cff1f28b04b974e75a Mon Sep 17 00:00:00 2001 From: Peng Li Date: Sat, 6 May 2017 23:22:12 +0800 Subject: [PATCH] zshrc - fix installation issue --- zsh/install.pl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 $?; -- 2.11.0