Skip to content

Instantly share code, notes, and snippets.

@jeffmccune
Created January 24, 2013 06:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffmccune/4618182 to your computer and use it in GitHub Desktop.
Save jeffmccune/4618182 to your computer and use it in GitHub Desktop.
#! /bin/bash
#
sudo yum -y install git tmux zsh ruby-devel ruby-irb ruby-rdoc rubygems make gcc
cd ~
test -d .vim || git clone git@github.com:jeffmccune/jeff_vim.git .vim
test -e .vimrc || ln -s .vim/vimrc.vim .vimrc
test -d .vimswp || mkdir .vimswp
test -d customization || (git clone jeff@shell.puppetlabs.com:git/customization.git; cd customization; git submodule init; git submodule update)
test -e .zshrc || ./customization/install
sudo chsh $USER -s /bin/zsh
if ! [[ -f ~/.zshrc.local ]]; then
echo 'export GEM_HOME="${HOME}"/.gems' > ~/.zshrc.local
echo 'export PATH="${GEM_HOME}/bin:${PATH}"' >> ~/.zshrc.local
fi
eval "$(cat ~/.zshrc.local)"
gem install bundler --no-ri --no-rdoc
gem install rake --no-ri --no-rdoc
gem install hub --no-ri --no-rdoc
test -d src || mkdir src
cd src
test -d facter || hub clone puppetlabs/facter
test -d puppet || hub clone puppetlabs/puppet
test -d hiera || hub clone puppetlabs/hiera
(cd facter; bundle install --path vendor)
echo "All done! Vim and your shell are setup, log back in and cd src/facter; bundle exec facter"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment