# Cygwin-only stuff. Abort if not Cygwin.
[[ "$OSTYPE" =~ ^cygwin ]] || return 1

# Install Cygwin packages.
if [[ "$(type -P cygwin.exe)" ]]; then
  packages="openssh,subversion,vim,curl,zsh"
  e_header "Installing cygwin packages: $packages"
  cygwin.exe -q -P $packages
fi

# Cygwin-only stuff. Abort if not Cygwin.
[[ "$OSTYPE" =~ ^cygwin ]] || return 1


# replace bash with zsh
perl -pi -w -e 's/bash --login/zsh -l/g;' /Cygwin.bat


# Install Cygwin packages.
if [[ "$(type -P cygwin.exe)" ]]; then
  packages="openssh,subversion,vim,curl,zsh"
  e_header "Installing cygwin packages: $packages"
  cygwin.exe -q -P $packages
fi

Change default shell in Cygwin from bash to zsh
Change default shell in Cygwin from bash to zsh
