-
Notifications
You must be signed in to change notification settings - Fork 2
/
bootstrap.sh
executable file
·66 lines (50 loc) · 1.91 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
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
#/bin/bash
# chsh -s /bin/zsh
# Change directory to the directory of the script
cd "$(dirname "$0")"
# Abort on error
set -e
# Display LICENSE
echo "Copyright (C) 2019 Christian Gambardella"
echo "This program comes with ABSOLUTELY NO WARRANTY; for details see LICENSE."
echo "This is free software, and you are welcome to redistribute it"
echo "under certain conditions; see LICENSE for details."; echo;
# Ensure user has read the LICENSE
read -p "By continuing, you agree to the terms above. Press [enter] to continue..."; echo;
# Show what must be installed to run the program
echo "The script will now install three necessary prerequisites -- Xcode Command Line Tools and Homebrew..."; echo;
# Ensure the user understands what must be installed.
read -p "Press [enter] to continue..."; echo;
# Install Xcode Command Line Tools
echo "Ensuring Xcode Command Line Tools are installed..."; echo;
./scripts/xcode-clt.sh
# Install Homebrew
./scripts/homebrew.sh
# Symlink prezto to ~/.zprezto
if test -d "$HOME/.zprezto"
then
echo "Prezto is symlinked already... skipping."
else
echo "Symlinking prezto..."
ln -s $HOME/.dotfiles/submodules/prezto $HOME/.zprezto
fi
# Symlinks zsh rc files to home directory
ln -s -f $HOME/.dotfiles/zsh/zlogin $HOME/.zlogin
ln -s -f $HOME/.dotfiles/zsh/zlogout $HOME/.zlogout
ln -s -f $HOME/.dotfiles/zsh/zpreztorc $HOME/.zpreztorc
ln -s -f $HOME/.dotfiles/zsh/zprofile $HOME/.zprofile
ln -s -f $HOME/.dotfiles/zsh/zshenv $HOME/.zshenv
ln -s -f $HOME/.dotfiles/zsh/zshrc $HOME/.zshrc
# symlink tmux
ln -s -f $HOME/.dotfiles/submodules/tmux/.tmux.conf $HOME/.tmux.conf
cp $HOME/.dotfiles/submodules/tmux/.tmux.conf.local $HOME/.tmux.conf.local
# Installs rust through rustup
./scripts/rustup.sh
# Installs node through nvm
./scripts/node.sh
# Installs yarn and a bunch of global packages
./scripts/yarn.sh
# Symlinks alacritty config
./scripts/alacritty.sh
# Synlinks kitty config
./scripts/kitty.sh