projects
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1985bb1
)
zsh - fix submodules
author
Peng Li
<seudut@gmail.com>
Sun, 19 Feb 2017 07:47:45 +0000
(15:47 +0800)
committer
Peng Li
<seudut@gmail.com>
Sun, 19 Feb 2017 07:47:45 +0000
(15:47 +0800)
zsh/install.pl
patch
|
blob
|
history
diff --git
a/zsh/install.pl
b/zsh/install.pl
index
1aac9dd
..
73b5e47
100755
(executable)
--- a/
zsh/install.pl
+++ b/
zsh/install.pl
@@
-14,5
+14,18
@@
die "~/.zsh or ~/.zshrc exist. Backup them first.\n" if -e "$home/.zsh" or -e "$
print `ln -s $zshDir $home/.zsh`;
print `ln -s $zshrc $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 "Done\n" unless $?;
print "Done\n" unless $?;