summaryrefslogtreecommitdiff
path: root/setup.sh
blob: ba40f6c7ce0a4c0ba0ca4171dfe3f2ff09f4ef39 (plain)
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
#!/usr/bin/env bash
set -euo pipefail

STOW="stow -R --no-folding -v"

cd "$(dirname $0)"
git submodule update --init --recursive

$STOW common
$STOW zsh
source $HOME/.zshenv

if which xmonad >/dev/null; then
    $STOW desktop
    xmonad --recompile
fi

if [[ $# -ge 1 && $1 == "fast" ]]; then
    shift
    exit
fi

if which emacs >/dev/null; then
    $STOW emacs
    if [[ ! -e ~/.emacs.d ]]; then
      git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
    fi
    doom sync  # Too slow!
fi