blob: b77d843e37bc629dbb03c85194dd40711efcfecc (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
#!/usr/bin/env bash
set -euo pipefail
STOW="stow --no-folding"
cd "$(dirname $0)"
git submodule update --init --recursive --depth 1
touch ~/.zshrc.local
touch ~/.zshenv.local
echo "Cloning Chemacs2"
if [[ ! -e ~/.config/emacs ]]; then
git clone https://github.com/plexus/chemacs2.git ~/.config/emacs
fi
echo "Cloning doom"
doom_path=~/build/doom-emacs
if which emacs >/dev/null && [[ ! -e $doom_path ]]; then
unset DOOMDIR
unset EMACSDIR
git clone --depth 1 https://github.com/hlissner/doom-emacs $doom_path
$doom_path/bin/doom install
$doom_path/bin/doom sync # Too slow!
fi
echo "Stow"
$STOW common
$STOW zsh
$STOW direnv
$STOW xbindkeys
$STOW emacs
touch $HOME/.zshrc.local
source $HOME/.zshenv
if which xmonad >/dev/null; then
$STOW desktop
touch ~/.Xresources.local
xrdb -I$HOME -merge ~/.Xresources
xmonad --recompile
fi
if [[ $# -ge 1 && $1 == "fast" ]]; then
shift
exit
fi
fc-cache || true
tools=(
rg
fzf
bat
most
direnv
emacs
git
zoxide
rofi
# for emacs everywhere
xwininfo
xclip
xbindkeys
xvkbd
)
for tool in "${tools[@]}"; do
if ! type "$tool" &>/dev/null; then
echo "Missing: $tool"
fi
done
|