Last active
March 30, 2016 15:32
-
-
Save aegypius/ef7f5483c64aa13947e8ef972d4eed87 to your computer and use it in GitHub Desktop.
Boostrap Home directory
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 | |
# | |
# Boostrap home directory using a bash one-liner : | |
# | |
# bash <(curl -sL https://gist.githubusercontent.com/aegypius/ef7f5483c64aa13947e8ef972d4eed87/raw/bootstrap.bash) | |
# | |
# Ensure git is installed if not install it (support debian or gentoo for now) | |
( \ | |
(type git > /dev/null 2>&1) || \ | |
(type apt-get > /dev/null 2>&1 && apt-get install -y --no-install-recommends git-core) || \ | |
(type emerge > /dev/null 2>&1 && emerge git) \ | |
) | |
# Clones homeshick repository | |
( | |
(test -d $HOME/.homesick/repos/homeshick) || \ | |
(git clone git://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick) | |
) | |
source $HOME/.homesick/repos/homeshick/homeshick.sh | |
# Clones castles | |
CASTLES=${CASTLES:-"vundlevim/vundle.vim tmux-plugins/tpm aegypius/dotfiles"} | |
for CASTLE in $CASTLES; do | |
homeshick clone $CASTLE; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment