Created
August 7, 2012 01:27
-
-
Save jeremiahshirk/3280439 to your computer and use it in GitHub Desktop.
Prepare Gauntlt Getting Started environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## shell script to prepare Gauntlt Getting Started environment | |
# required distro packages | |
sudo apt-get -y install nmap curl libcurl3-dev rbenv libyaml-dev | |
# rbenv ENV vars | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
# download and build ruby | |
mkdir $HOME/tmp && cd $HOME/tmp | |
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz | |
tar xzvf ruby-1.9.3-p194.tar.gz | |
cd ruby-1.9.3-p194 | |
./configure --prefix=$HOME/.rbenv/versions/1.9.3-p194 | |
make | |
make install | |
# use the new ruby | |
rbenv global 1.9.3-p194 | |
echo ruby is `which ruby` | |
# gherkin syntax highlighting in vim for .attack files | |
mkdir -p ~/.vim/syntax | |
wget https://raw.github.com/tpope/vim-cucumber/master/syntax/cucumber.vim \ | |
-O ~/.vim/syntax/gherkin.vim | |
echo "syn on" >> ~/.vimrc | |
echo "au Bufread,BufNewFile *.attack set filetype=gherkin" >> ~/.vimrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment