From: Peng Li Date: Sun, 5 Nov 2017 07:45:14 +0000 (+0800) Subject: Add install files X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=cab4355b8cc0df6c4691b2b13fdcd831b40d1d8d;p=dotfiles.git Add install files --- 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. ###" + + +