# Open Powershell and go to where you have downloaded the Cygwin Installer
# This will initialise the environment installing all the packages we want
.\setup-x86_64.exe -q -l "C:\cygwin64" -q -P "zlib-devel,openssl,openssl-devel,libyaml-devel,libyaml0_2,sqlite3,make,libtool,gcc-core,autoconf,automake,bison,m4,mingw64-i686-gcc,mingw64-x86_64-gcc,cygwin32-readline,libffi6,libffi-devel,cygwin32-libffi,pkg-config,python,curl,patch,bash-completion,libcrypt-devel,git,openssh,python-libxml2,python-lxml,python-libxslt,vim,vim-commonset,wget,libreadline7,libreadline-devel" -C Ruby
# After Loading the term
# Grab cygwin set-up for things that use it
curl http://cygwin.com/setup-x86_64.exe -o /bin/setup-x86_64.exe
chmod 744 /bin/setup-x86_64.exe
gem install jekyll
# Fix Jekyll under windows
echo "export COMSPEC=/cygdrive/c/Windows/System32/cmd.exe" >> .bashrc
# Set up some extra stuff for my enviroment, had to escape the %
echo "set backspace=indent,eol,start" >> .vimrc
echo 'export PS1="\D{\%d-\%m \%k:\%M} : \u : \W \$ "' >> .bashrc