-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.bash
executable file
·44 lines (38 loc) · 1.09 KB
/
bootstrap.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
#
# Boostrap home directory using a bash one-liner :
#
# bash <(curl -sL https://raw.githubusercontent.com/aegypius/dotfiles/master/bootstrap.bash)
#
set -eo pipefail
# 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 && sudo apt-get install -y --no-install-recommends git-core) || \
(type dnf > /dev/null 2>&1 && sudo dnf install -y git) || \
(type emerge > /dev/null 2>&1 && sudo emerge git) || \
(echo "Failed to install git" && false) \
)
set +eo pipefail
# 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 \
rupa/z \
nana-4/materia-theme \
Trejjam/Gnome-Docker-integration \
hbekel/magic \
tonsky/FiraCode \
\
aegypius/dotfiles \
aegypius/dotfiles-wrapped \
"}
for CASTLE in $CASTLES; do
homeshick clone $CASTLE;
done;