Created
October 19, 2011 05:21
-
-
Save zhhailon/1297521 to your computer and use it in GitHub Desktop.
A quick and dirty Rails development environment using Arch Linux
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
### Get Repos Ready ### | |
# initial update & upgrade | |
sudo pacman -Syu | |
# install new apps | |
sudo pacman -Sy --noconfirm gcc patch curl zlib readline libxml2 libxslt git autoconf diffutils make libtool bison subversion vim-rails qgit | |
# configure git | |
git config --global user.name your-username | |
git config --global user.email your-email-address | |
# configure SSH key | |
ssh-keygen -t rsa -C your-git-email-address | |
# add key to GitHub | |
# install rvm | |
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )) | |
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile | |
source .bash_profile | |
rvm get head # optional | |
# install ruby | |
rvm install 1.9.2,jruby | |
rvm use 1.9.2 --default | |
# install default gemset | |
gem install rails heroku rspec taps # --http-proxy http://127.0.0.1:8000 | |
# install and configure vim | |
# with a bunch of goodies from | |
# akitaonrails - https://github.com/akitaonrails/vimfiles | |
sudo pacman -S ncurses ctags gvim | |
git clone git://github.com/akitaonrails/vimfiles.git ~/.vim | |
cd ~/.vim | |
git submodule update --init | |
echo "source ~/.vim/vimrc" > ~/.vimrc | |
echo "source ~/.vim/gvimrc" > ~/.gvimrc | |
# fix Command-T for above Vimfile | |
rvm use system | |
cd ~/.vim/bundle/Command-T/ruby/command-t | |
ruby extconf.rb | |
make | |
# end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment