-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.sh
executable file
·41 lines (30 loc) · 908 Bytes
/
deploy.sh
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
#!/usr/bin/env bash
#
# Install the correct dotifles needed for this machine
set -eu
declare -r DOTFILES="${HOME}/.dotfiles"
declare -r STOWFLAGS=(--restow --target ${HOME})
# shellcheck source=./lib/dotfiles.sh
source "${DOTFILES}/lib/dotfiles.sh"
# shellcheck source=./lib/print.sh
source "${DOTFILES}/lib/print.sh"
check_codename
info "Installing git hooks"
pre-commit install &> /dev/null
info "Deploying .bin directory"
stow "${STOWFLAGS[@]}" bin
info "Deploying spacemacs config"
stow "${STOWFLAGS[@]}" spacemacs
info "Deploying zsh config"
stow "${STOWFLAGS[@]}" zsh
info "Deploying urxvt config"
stow "${STOWFLAGS[@]}" urxvt
info "Deploying aspell dictionary"
stow "${STOWFLAGS[@]}" aspell
info "Deploying git config"
if at_work; then
stow "${STOWFLAGS[@]}" git-work
else
stow "${STOWFLAGS[@]}" git
fi
ln --symbolic --force "${DOTFILES}/git-common/.gitignore" "${HOME}/.gitignore"