|
# Copy and paste these into the Bash shell. Use shift-insert to paste. |
|
|
|
# Configure Git |
|
git config --global http.proxy http://gateway.zscaler.net:80/ |
|
git config --system http.proxy http://gateway.zscaler.net:80/ |
|
git config --global http.sslVerify false |
|
git config --system http.sslVerify false |
|
git config --global --unset http.sslcainfo |
|
git config --system --unset http.sslcainfo |
|
git config --global push.default matching |
|
git config --system push.default matching |
|
git config --global branch.autosetuprebase always |
|
git config --system branch.autosetuprebase always |
|
git config --global core.autocrlf true |
|
git config --system core.autocrlf true |
|
|
|
# Create local folder for Node since our roaming profiles screw things up |
|
mkdir /c/apps |
|
# This is where global modules will be installed: |
|
mkdir /c/apps/npmglobal |
|
# This is the folder Node will use as its cache when it downloads packages to install: |
|
mkdir /c/apps/npmcache |
|
|
|
# Configure Node to use those local directories |
|
npm config set cache /c/apps/npmcache --global |
|
npm config set prefix /c/apps/npmglobal --global |
|
|
|
# Configure Node/NPM for the proxy |
|
npm config set proxy http://gateway.zscaler.net:80/ --global |
|
npm config set strict-ssl false --global |
|
npm config set registry http://registry.npmjs.org/ --global |
|
|
|
# Setup Bash profile and `PATH` |
|
touch ~/.bash_profile |
|
touch ~/.bashrc |
|
echo "export PATH=/c/apps/npm-global:\$PATH" >> ~/.bash_profile |
|
echo "export PATH=/c/apps/npm-global:\$PATH" >> ~/.bashrc |
|
source ~/.bash_profile |
|
source ~/.bashrc |
|
export PATH=/c/apps/npm-global:$PATH |
|
|
|
# Install global Node modules |
|
npm install -g grunt-cli jshint |
|
|
|
# Done! |