-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·40 lines (33 loc) · 1.01 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
#!/usr/bin/env bash
# turns the platform into 'linux' or 'darwin'
platform=$(uname | tr '[:upper:]' '[:lower:]')
# This is where secret ENV vars go
touch secrets.sh
rm -f -- ~/.alacritty.toml
rm -f -- ~/.fonts
rm -f -- ~/work
rm -rf -- ~/.config/nvim
rm -rf -- ~/.config/sway
rm -rf -- ~/.config/i3
rm -rf -- ~/.config/gtk-3.0
rm -rf -- ~/.zshrc
rm -rf -- ~/.tmux.conf
rm -rf -- ~/Pictures/wallpapers
ln -s "$(pwd)/.alacritty.toml" ~/.alacritty.toml
ln -s "$(pwd)/nvim" ~/.config/nvim
ln -s "$(pwd)/.zshrc" ~/.zshrc
ln -s "$(pwd)/.tmux.conf" ~/.tmux.conf
ln -s "$(pwd)/.ideavimrc" ~/.ideavimrc
ln -s "$(pwd)/work" ~/work
ln -s "$(pwd)/wallpapers" ~/Pictures/wallpapers
if [ $platform == "linux" ]; then
ln -s "$(pwd)/i3" ~/.config/i3
ln -s "$(pwd)/sway" ~/.config/sway
ln -s "$(pwd)/fonts" ~/.fonts
ln -s "$(pwd)/gtk-3.0" ~/.config/gtk-3.0
gsettings set org.gnome.desktop.interface color-scheme prefer-dark
fc-cache
fi
if [ $platform == "darwin" ]; then
defaults write org.alacritty AppleFontSmoothing -int 0
fi