2016-07-31 08:19:28 +01:00
|
|
|
@echo on
|
|
|
|
choco install -y firefox googlechrome wget notepadplusplus sublimetext3
|
2016-07-30 20:24:10 +01:00
|
|
|
|
2016-07-30 11:38:29 +01:00
|
|
|
wget -c https://cygwin.com/setup-x86_64.exe
|
2016-07-30 20:51:11 +01:00
|
|
|
setup-x86_64.exe -R "C:\cygwin64" -s http://cygwin.netbet.org/ -q -g -P curl,zsh,git,vim,wget,xz,tar,gawk,bzip2,subversion,zlib,fontconfig
|
2016-07-30 20:24:10 +01:00
|
|
|
|
2016-07-31 08:19:28 +01:00
|
|
|
set bash=c:\cygwin64\bin\bash.exe --login -c
|
|
|
|
for /f "delims=" %%A in ('%bash% "cd `cygpath $HOMEPATH`/dev/dotfiles && git rev-parse --abbrev-ref HEAD"') do set "branch=%%A"
|
|
|
|
%bash% 'echo "branch is $branch"'
|
|
|
|
%bash% "cp -vr `cygpath $HOMEPATH`/.ssh $HOME/"
|
2016-07-30 20:24:10 +01:00
|
|
|
|
2016-07-31 08:26:15 +01:00
|
|
|
%bash% "mkdir -pv $HOME/dev/"
|
|
|
|
%bash% "rm -fr $HOME/dev/dotfiles"
|
2016-07-31 08:19:28 +01:00
|
|
|
%bash% "git clone `cygpath $HOMEPATH`/dev/dotfiles $HOME/dev/dotfiles"
|
2016-07-31 08:43:37 +01:00
|
|
|
%bash% "cd $HOME/dev/dotfiles && git remote set-url origin git@github.com:cyplo/dotfiles.git"
|
2016-07-31 08:19:28 +01:00
|
|
|
%bash% "cd $HOME/dev/dotfiles && git checkout $branch"
|
2016-07-31 08:43:37 +01:00
|
|
|
%bash% "cd $HOME/dev/dotfiles && git pull"
|
2016-07-31 08:45:05 +01:00
|
|
|
%bash% "export DIR=$HOME/dev/dotfiles && NOSUDO=true DONT_CHANGE_SHELL=true NORUST=true $DIR/common/configure_fresh_system"
|
2016-07-30 10:00:14 +01:00
|
|
|
|