Skip to content

Instantly share code, notes, and snippets.

@aegypius
Last active March 30, 2016 15:32
Show Gist options
  • Save aegypius/ef7f5483c64aa13947e8ef972d4eed87 to your computer and use it in GitHub Desktop.
Save aegypius/ef7f5483c64aa13947e8ef972d4eed87 to your computer and use it in GitHub Desktop.
Boostrap Home directory
#!/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