Skip to content

Instantly share code, notes, and snippets.

@youssman
Created August 27, 2017 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save youssman/9fef0848cee54981ab193cd6e9a86833 to your computer and use it in GitHub Desktop.
Save youssman/9fef0848cee54981ab193cd6e9a86833 to your computer and use it in GitHub Desktop.
Script to install Bash-it on Vagrant provisioning (Ubuntu box)
#!/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