-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·39 lines (33 loc) · 1.26 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
#!/bin/bash
set -e
function makeLinks() {
ln -s ~/Documents/Dotfiles/.zshrc ~/.zshrc
ln -s ~/Documents/Dotfiles/.curlrc ~/.curlrc
ln -s ~/Documents/Dotfiles/.codespellrc ~/.codespellrc
ln -s ~/Documents/Dotfiles/.djlintrc ~/.djlintrc
ln -s ~/Documents/Dotfiles/.wgetrc ~/.wgetrc
ln -s ~/Documents/Dotfiles/.gitconfig ~/.gitconfig
ln -s ~/Documents/Dotfiles/.gitignore_global ~/.gitignore_global
ln -s ~/Documents/Dotfiles/.hushlogin ~/.hushlogin
ln -s ~/Documents/Dotfiles/.bc ~/.bc
ln -s ~/Documents/Dotfiles/.emacs.d/init.el ~/.emacs.d/init.el
sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
}
echo "Did you remember to install Homebrew? If not, do that first. (y/n) " -n 1;
echo "";
if [[ $REPLY =~ ^[Yy]$ ]]; then
brew bundle && pipx ensurepath && open https://github.com/standardebooks/tools?tab=readme-ov-file#macos-users
else
open https://brew.sh
fi;
echo "Do you want to save a copy of your Brewfile? (y/n) " -n 1;
echo "";
if [[ $REPLY =~ ^[Yy]$ ]]; then
~/Desktop && brew bundle dump
fi;
echo "Almost done! Do you want to continue? (y/n) " -n 1;
echo "";
if [[ $REPLY =~ ^[Yy]$ ]]; then
makeLinks && chsh -s /usr/local/bin/zsh
fi;
exec $SHELL && brew doctor