#!/bin/sh

# added missing symlink
`test ! -x /usr/bin/ruby && ln -s /opt/vagrant_ruby/bin/ruby /usr/bin/ruby`

# install ctags
if [ -x /usr/bin/apt-get ]; then
    # update packages
    apt-get update
    # ctags
    apt-get install exuberant-ctags 
    # python3
    apt-get install python3.2 python3.2-minimal
fi

# install ctags
if [ -x /usr/local/bin/pip ]; then
    # tox
    pip install tox
    # coverage
    pip install coverage
fi

# configure environment
su vagrant -c 'test ! -d ~/.termrc && git clone git://github.com/michalbachowski/termrc.git ~/.termrc && cd ~/.termrc && /bin/bash init.sh'
  
# configure vim
su vagrant -c 'test ! -d ~/.vimper && git clone git://github.com/michalbachowski/vimper.git ~/.vimper && cd ~/.vimper && python bootstrap.py'

# git config
su vagrant -c 'git config --global color.ui true'

## Node.js modules

# Yeoman
npm install -g yo grunt-cli bower 

# underscore
npm install -g underscore

exit 0

#!/bin/sh

# added missing symlink
`test ! -x /usr/bin/ruby && ln -s /opt/vagrant_ruby/bin/ruby /usr/bin/ruby`

# install ctags
if [ -x /usr/bin/apt-get ]; then
    # update packages
    apt-get update
    # ctags
    apt-get install exuberant-ctags 
    # python3
    apt-get install python3.2 python3.2-minimal
fi

# install ctags
if [ -x /usr/local/bin/pip ]; then
    # tox
    pip install tox
    # coverage
    pip install coverage
fi

# configure environment
su vagrant -c 'test ! -d ~/.termrc && git clone git://github.com/michalbachowski/termrc.git ~/.termrc && cd ~/.termrc && /bin/bash init.sh'
  
# configure vim
su vagrant -c 'test ! -d ~/.vimper && git clone git://github.com/michalbachowski/vimper.git ~/.vimper && cd ~/.vimper && python bootstrap.py'

# git config
su vagrant -c 'git config --global color.ui true'
su vagrant -c 'git config --global core.editor vim'

## Node.js modules

# Yeoman
npm install -g yo grunt-cli bower 

# underscore
npm install -g underscore

exit 0

Set git core.editor to 'vim'
Set git core.editor to 'vim'
