-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstall.sh
37 lines (26 loc) · 813 Bytes
/
install.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
#!/bin/bash
command_exists() {
type "$1" > /dev/null 2>&1
}
echo "Symlinking dotfiles"
source install/link.sh
if [ "$(uname)" == "Darwin" ]; then
echo -e "\n\nRunning on OSX"
echo "Setting up osx settings"
source install/osx.sh
echo "Brewing all the things"
source install/brew.sh
fi
# echo "Adding base16-shell project into .config"
# git clone https://github.com/chriskempson/base16-shell.git $HOME/.dotfiles/.config/base16-shell
echo "Installing tpm (tmux package manager)"
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# zsh setup
if ! command_exists zsh; then
echo "zsh not found. Please install and then re-run installation scripts"
exit 1
elif ! [[ $SHELL =~ .*zsh.* ]]; then
echo "Configuring zsh as default shell"
chsh -s $(which zsh)
fi
echo "Done!"