-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
26 lines (22 loc) · 794 Bytes
/
install.sh
File metadata and controls
26 lines (22 loc) · 794 Bytes
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
#!/bin/zsh
# Usage: $> curl -o- https://raw.githubusercontent.com/nwrman/dotfiles/master/install.sh | zsh
# $> chsh -s /usr/bin/zsh
set -e
# Installing homeshick
if [[ ! -s "$HOME/.homesick/repos/homeshick" ]]; then
git clone https://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
fi
source "$HOME/.homesick/repos/homeshick/homeshick.sh"
if [[ ! -e "$HOME/.homesick/repos/dotfiles" ]]; then
yes | homeshick clone nwrman/dotfiles
else
homeshick pull dotfiles
yes | homeshick link dotfiles || true
fi
# Run the bootstrap script for full machine setup
DOTFILES_DIR="$HOME/.homesick/repos/dotfiles"
if [[ -f "${DOTFILES_DIR}/scripts/bootstrap.sh" ]]; then
echo ""
echo "==> Running bootstrap script..."
bash "${DOTFILES_DIR}/scripts/bootstrap.sh" "$@"
fi