Add install files
authorPeng Li <seudut@gmail.com>
Sun, 5 Nov 2017 07:45:14 +0000 (15:45 +0800)
committerPeng Li <seudut@gmail.com>
Sun, 5 Nov 2017 07:45:14 +0000 (15:45 +0800)
install.pl [new file with mode: 0755]

diff --git a/install.pl b/install.pl
new file mode 100755 (executable)
index 0000000..6b602f1
--- /dev/null
@@ -0,0 +1,26 @@
+#!/usr/bin/perl -w
+#
+use strict;
+use 5.010;
+
+use Cwd;
+
+!system "git submodule init"  and  !system "git submodule update" or die $!;
+
+
+# install tmux.conf
+!system 'ln -s ' . cwd . '/tmux.conf ' . '$HOME/.tmux.conf'  or die $!;
+say "### install tmux.conf Done. ###"
+
+# install zshrc
+!system 'ln -s ' . cwd . '/zsh/zshrc ' . '$HOME/.zshrc'  
+    and !system 'ln -s ' . cwd . '/zsh ' . '$HOME/.zsh' or die $!;
+say "### install zsh Done. ###"
+
+# install vim
+!system 'ln -s ' . cwd . '/vim/vimrc ' . '$HOME/.vimrc' 
+    and !system 'ln -s ' . cwd . '/vim ' . '$HOME/.vim' or die $!;
+say "### install vim Done. ###"
+
+
+