-
Notifications
You must be signed in to change notification settings - Fork 6
/
install.sh
executable file
·110 lines (97 loc) · 2.93 KB
/
install.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*)
echo "Installing for Linux"
source "$PWD/os/ubuntu/install.sh"
;;
Darwin*)
echo "Installing for Mac"
source "$PWD/os/mac/install.sh"
;;
*)
echo "Unknown OS: $unameOut"
esac
# packer
if [ ! -d "$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim" ]; then
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim
fi
mkdir -p ~/Development/NullVoxPopuli
mkdir -p ~/Development/OpenSource
mkdir -p ~/Development/OpenSource/emberjs
mkdir -p ~/Development/OpenSource/starbeam
mkdir -p ~/Development/tmp
mkdir -p ~/Development/Work
mkdir -p ~/.local/share/nvim/_backup
mkdir -p ~/.local/share/nvim/_temp
mkdir -p ~/.local/share/nvim/_undo
mkdir -p ~/.local/share/nvim/spell
mkdir -p ~/.config/
mkdir -p ~/.config/pop-shell/
rm -rf ~/Applications
rm -rf ~/scripts
rm -rf ~/shell
rm -rf ~/.themes
rm -rf ~/.bash_profile
rm -rf ~/.config/nvim
rm -rf ~/.config/fish
rm -rf ~/.config/bat
rm -rf ~/.config/starship.toml
rm -rf ~/.config/pop-shell/config.json
rm -rf ~/.gitmessage
rm -rf ~/.prototools
rm -rf ~/.tldrrc
rm -rf ~/.cspell.json
rm -rf ~/.config/hypr
rm -rf ~/.config/waybar
rm -rf ~/.config/swaync
rm -rf ~/.config/swayosd
rm -rf ~/.config/yofi
rm -rf ~/.config/fontconfig
ln -s $PWD/home/Applications ~/Applications
ln -s $PWD/home/scripts ~/scripts
ln -s $PWD/home/shell ~/shell
ln -s $PWD/home/.cspell.json ~/.cspell.json
ln -s $PWD/home/.prototools ~/.prototools
ln -s $PWD/home/.themes ~/.themes
ln -s $PWD/home/.bash_profile ~/.bash_profile
ln -s $PWD/home/.config/nvim ~/.config/nvim
ln -s $PWD/home/.config/fish ~/.config/fish
ln -s $PWD/home/.config/alacritty ~/.config/alacritty
ln -s $PWD/home/.config/starship.toml ~/.config/starship.toml
ln -s $PWD/home/.config/bat ~/.config/bat
ln -s $PWD/home/.config/pop-shell/config.json ~/.config/pop-shell/config.json
ln -s $PWD/home/.gitmessage ~/.gitmessage
ln -s $PWD/home/.tldrrc ~/.tldrrc
ln -s $PWD/home/.config/hypr ~/.config/hypr
ln -s $PWD/home/.config/waybar ~/.config/waybar
ln -s $PWD/home/.config/swaync ~/.config/swaync
ln -s $PWD/home/.config/swayosd ~/.config/swayosd
ln -s $PWD/home/.config/yofi ~/.config/yofi
ln -s $PWD/home/.config/fontconfig ~/.config/fontconfig
case "${unameOut}" in
Linux*)
echo "Setup for Linux"
source "$PWD/os/ubuntu/setup.sh"
;;
Darwin*)
echo "Setup for Mac"
source "$PWD/os/mac/setup.sh"
;;
*)
echo "Unknown OS: $unameOut"
esac
###############################################
# Setup Git
###############################################
source ./git-setup.sh
echo "------------------"
echo " 🎉 Done! "
echo ""
echo "------------------"
echo ""
echo "Be sure to:"
echo "- Install Albert"
echo "- Change the Terminal Font"
echo "- Change the terminal to run as 'Login Shell'"
echo "- fix any keybinding issues as settings' names may have changed"