Created
December 18, 2015 17:09
-
-
Save shigemk2/21969d6a47aaec2e5073 to your computer and use it in GitHub Desktop.
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
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo apt-get update | |
sudo apt-get install -y git | |
sudo apt-get install -y unzip | |
wget --quiet https://github.com/motemen/ghq/releases/download/v0.7.2/ghq_linux_amd64.zip -O ghq_v0.7.2.zip | |
unzip -q -d ghq_v0.7.2 ghq_v0.7.2.zip | |
wget --quiet https://github.com/motemen/ghq/releases/download/v0.6/ghq_linux_amd64.tar.gz -O ghq_v0.6.tar.gz | |
tar xzf ghq_v0.6.tar.gz | |
mkdir -p /home/vagrant/GHQ_ROOT | |
git config --global ghq.root /home/vagrant/GHQ_ROOT | |
mkdir -p /home/vagrant/GHQ_ROOT/github.com/atom | |
mkdir -p /home/vagrant/atom | |
git init /home/vagrant/atom | |
ln -s /home/vagrant/atom /home/vagrant/GHQ_ROOT/github.com/atom/atom | |
mkdir -p /home/vagrant/GHQ_ROOT/github.com/atom/atom-2 | |
git init /home/vagrant/GHQ_ROOT/github.com/atom/atom-2 | |
mkdir -p /home/vagrant/GHQ_ROOT/github.com/zabbix | |
git init /home/vagrant/GHQ_ROOT/github.com/zabbix/zabbix | |
echo "----------------------------" | |
./ghq_linux_amd64/ghq -v | |
./ghq_linux_amd64/ghq list | |
echo "----------------------------" | |
./ghq_v0.7.2/ghq -v | |
./ghq_v0.7.2/ghq list | |
SHELL | |
end |
Author
shigemk2
commented
Dec 18, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment