-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·46 lines (37 loc) · 1.49 KB
/
setup.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
42
43
44
45
46
#!/usr/bin/bash
if [[ "$USER" != "andreas" ]]; then
echo "Expected user to be andreas!"
exit 1
fi
h="/home/andreas/"
# LiberationMono Nerd Font (LiterationMono)
if [[ ! -d ${h}.fonts ]]; then
curl "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/LiberationMono.zip" -L --output "/tmp/LiberationMono.zip" && \
mkdir ${h}.fonts && \
unzip /tmp/LiberationMono.zip -d ${h}.fonts && \
fc-cache -fv
fi
if [[ ! -d ${h}.oh-my-zsh ]]; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
rm ${h}.zshrc
rm ${h}.zshrc.pre-oh-my-zsh
fi
ln -s ${h}dotfiles/.oh-my-zsh/custom/themes/sunaku-zapling.zsh-theme ${h}.oh-my-zsh/custom/themes/
[[ ! -d ${h}.ssh ]] && mkdir ${h}.ssh
ln -s ${h}dotfiles/.ssh/config ${h}.ssh/
ln -s ${h}dotfiles/.zshrc ${h}
ln -s ${h}dotfiles/.zshenv ${h}
ln -s ${h}dotfiles/.gitconfig ${h}
ln -s ${h}dotfiles/.psqlrc ${h}
ln -s ${h}dotfiles/.omnisharp ${h}
[[ ! -d ${h}.local ]] && mkdir ${h}.local
ln -s ${h}dotfiles/.local/bin ${h}.local/
ln -s ${h}dotfiles/.config/git ${h}.config/
ln -s ${h}dotfiles/.config/nvim ${h}.config/
ln -s ${h}dotfiles/.config/sway ${h}.config/
ln -s ${h}dotfiles/.config/i3blocks ${h}.config/
ln -s ${h}dotfiles/.config/alacritty ${h}.config/
ln -s ${h}dotfiles/.config/fontconfig ${h}.config/
ln -s ${h}dotfiles/.config/kanshi ${h}.config/
ln -s ${h}dotfiles/.config/wofi ${h}.config/
ln -s ${h}dotfiles/.config/chromium-flags.conf ${h}.config/