Created
January 24, 2013 06:50
-
-
Save jeffmccune/4618182 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#! /bin/bash | |
# | |
sudo yum -y install git tmux zsh ruby-devel ruby-irb ruby-rdoc rubygems make gcc | |
cd ~ | |
test -d .vim || git clone [email protected]:jeffmccune/jeff_vim.git .vim | |
test -e .vimrc || ln -s .vim/vimrc.vim .vimrc | |
test -d .vimswp || mkdir .vimswp | |
test -d customization || (git clone [email protected]: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