From cab4355b8cc0df6c4691b2b13fdcd831b40d1d8d Mon Sep 17 00:00:00 2001 From: Peng Li Date: Sun, 5 Nov 2017 15:45:14 +0800 Subject: [PATCH] Add install files --- install.pl | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 install.pl diff --git a/install.pl b/install.pl new file mode 100755 index 0000000..6b602f1 --- /dev/null +++ b/install.pl @@ -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. ###" + + + -- 2.11.0