-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·28 lines (22 loc) · 1001 Bytes
/
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
#!/bin/bash
DOTFILES_DIRECTORY="$HOME/Projects/dotfiles"
export DOTFILES_DIRECTORY
echo "Copying over aliases to $HOME/.aliases"
cp "$DOTFILES_DIRECTORY/.aliases" "$HOME/.aliases"
echo "Appending zshrc to $HOME/.zshrc"
cat "$DOTFILES_DIRECTORY/.zshrc" >> "$HOME/.zshrc"
echo "Copying gitignore from $DOTFILES_DIRECTORY/git/global_gitignore to $HOME/.gitignore"
cp "$DOTFILES_DIRECTORY/git/global_gitignore" "$HOME/.gitignore"
if [[ "$OSTYPE" == "darwin"* ]]; then
echo "Running macOS specific setup"
echo "Installing homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
"$DOTFILES_DIRECTORY/macos/macos.sh"
"$DOTFILES_DIRECTORY/macos/brew.sh"
fi
echo "Setting up git"
"$DOTFILES_DIRECTORY/git/aliases.sh"
"$DOTFILES_DIRECTORY/git/config.sh"
echo "Copying tmux config to $HOME/.config/tmux/tmux.conf."
mkdir -p "$HOME/.config/tmux" && cp "$DOTFILES_DIRECTORY/tmux/.tmux.conf" "$HOME/.config/tmux/tmux.conf"
echo "Finished"