-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·81 lines (64 loc) · 1.8 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
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
#==============
# Pre Install
#==============
echo "====== Starting setup ======"
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# brew doctor
# brew update
sleep .5
#==============
# Remove old dotflies
#==============
echo "\n====== Removing old dotfiles ======"
rm ~/.gnupg/gpg-agent.conf
rm ~/.config/goto
rm ~/.config/neofetch
rm ~/.config/nvim
rm ~/.config/starship.toml
rm ~/.tmux.conf
rm ~/.warp
rm ~/.zsh
rm ~/.zshrc
rm ~/.zshenv
sleep .5
#==============
# Create symlinks in the home folder
#==============
echo "\n====== Creating symlinks ======"
SYMLINKS=()
ln -sf ~/Code/jmetrikat/dotfiles/gnupg/.gnupg/gpg-agent.conf ~/.gnupg/gpg-agent.conf
SYMLINKS+=('.gnupg/gpg-agent.conf')
ln -sf ~/Code/jmetrikat/dotfiles/goto/.config/goto ~/.config/goto
SYMLINKS+=('.config/goto')
ln -sf ~/Code/jmetrikat/dotfiles/homebrew/Brewfile ~/Brewfile
SYMLINKS+=('.brewfile')
ln -sf ~/Code/jmetrikat/dotfiles/neofetch/.config/neofetch ~/.config/
SYMLINKS+=('.config/neofetch')
ln -sf ~/Code/jmetrikat/dotfiles/nvim/.config/nvim ~/.config/
SYMLINKS+=('./config/nvim')
ln -sf ~/Code/jmetrikat/dotfiles/starship/.config/starship.toml ~/.config/
SYMLINKS+=('.config/starship.toml')
ln -sf ~/Code/jmetrikat/dotfiles/tmux/.tmux.conf ~/.tmux.conf
SYMLINKS+=('.tmux.conf')
ln -sf ~/Code/jmetrikat/dotfiles/warp/.warp ~/.warp
SYMLINKS+=('.warp')
ln -sf ~/Code/jmetrikat/dotfiles/zsh/.zsh ~/.zsh
SYMLINKS+=('.zsh')
ln -sf ~/Code/jmetrikat/dotfiles/zsh/.zshrc ~/.zshrc
SYMLINKS+=('.zshrc')
ln -sf ~/Code/jmetrikat/dotfiles/zsh/.zshenv ~/.zshenv
SYMLINKS+=('.zshenv')
echo ${SYMLINKS[@]}
echo
#==============
# Install tools specified in brewfile
#==============
cd ~
brew bundle
rm ~/Brewfile.lock.json
sleep .5
#==============
# Done
#==============
echo "\n====== All Done ======"
echo "Enjoy!"