Created
August 27, 2017 17:16
-
-
Save youssman/9fef0848cee54981ab193cd6e9a86833 to your computer and use it in GitHub Desktop.
Script to install Bash-it on Vagrant provisioning (Ubuntu box)
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
#!/usr/bin/env bash | |
# Using bento/ubuntu-14.04 vm box and Vagrant v1.9.8 | |
# Corresponding line in Vagrantfile: config.vm.provision "shell", path: "bash-it.sh", privileged: false | |
# https://github.com/Bash-it/bash-it | |
# https://www.vagrantup.com | |
export DEBIAN_FRONTEND=noninteractive | |
# Clonning bash-it repo | |
git clone --depth=1 https://github.com/Bash-it/bash-it.git /home/vagrant/.bash_it | |
# Silent installation | |
/home/vagrant/.bash_it/install.sh -s | |
# Activate Bash-it plugins, aliases and completion manually | |
# (Add yours following this pattern) | |
# Adding git aliases | |
ln -s /home/vagrant/.bash_it/aliases/available/git.aliases.bash /home/vagrant/.bash_it/aliases/enabled/150---git.aliases.bash | |
# Adding git completion | |
ln -s /home/vagrant/.bash_it/completion/available/git.completion.bash /home/vagrant/.bash_it/completion/enabled/350---git.completion.bash | |
# Adding git plugin | |
ln -s /home/vagrant/.bash_it/plugins/available/git.plugin.bash /home/vagrant/.bash_it/plugins/enabled/250---git.plugin.bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment