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

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

cd "$(dirname $0)"
$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
    git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
    doom sync  # Too slow!
fi