-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·34 lines (26 loc) · 1.11 KB
/
bootstrap.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
#!/bin/bash
source 'helpers.sh'
# Install software
./install.sh
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
# Install tmux plugins
create_directory ~/.tmux/plugins
TPM_DIR=~/.tmux/plugins/tpm
if [[ ! -d "$TPM_DIR" ]]; then
echo_item "cloning tpm directory" "green"
git clone --quiet https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm >/dev/null
fi
# Download sketchybar fonts
curl -L https://github.com/kvndrsslr/sketchybar-app-font/releases/download/v1.0.16/sketchybar-app-font.ttf -o $HOME/Library/Fonts/sketchybar-app-font.ttf
# Run the configuration script
./configure.sh
# Installation complete, ask for reboot
echo "Installation completed successfully."
echo "Some of the changes might require a reboot, want to do that now? [Y/n]"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
sudo shutdown -r
fi