-
Notifications
You must be signed in to change notification settings - Fork 1
/
boostrap.sh
executable file
·54 lines (35 loc) · 1.45 KB
/
boostrap.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
#!/usr/bin/env bash
cat << "EOF"
____ __ __
/ __ )____ ____ / /______/ /__________ _____
/ __ / __ \/ __ \/ __/ ___/ __/ ___/ __ `/ __ \
/ /_/ / /_/ / /_/ / /_(__ ) /_/ / / /_/ / /_/ /
/_____/\____/\____/\__/____/\__/_/ \__,_/ .___/
/_/
EOF
sleep 2
printf '\033[1J'
echo "boostrapping system..."
echo "installing brew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "installing oh-my-zsh..."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo "installing zsh-autosuggestions..."
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
echo "installing nvm..."
curl -o https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
nvm install --lts
echo "cloning dotfiles.."
git clone https://github.com/kostyafarber/dotfiles.git .dotfiles
echo "installing brew packages..."
/opt/homebrew/bin/brew bundle install --file="$HOME/.dotfiles/mac/essential/Brewfile"
cp .ascii_castle.txt $HOME/
echo "installing dotfiles..."
cd .dotfiles
# overwrite and restore the dotfiles
/opt/homebrew/bin/stow nvim tmux wezterm zshrc
/opt/homebrew/bin/stow --no-folding vscode
git restore .
echo "setting mac preferences..."
chmod +x $HOME/.dotfiles/mac/systemprefs.sh
$HOME/.dotfiles/mac/systemprefs.sh