Skip to content

Instantly share code, notes, and snippets.

@RudoCris
Forked from zhhailon/rails_on_arch.sh
Last active August 29, 2015 14:11
Show Gist options
  • Save RudoCris/5fc8bc22fa9153bc999a to your computer and use it in GitHub Desktop.
Save RudoCris/5fc8bc22fa9153bc999a to your computer and use it in GitHub Desktop.
### 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