-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·41 lines (32 loc) · 1.01 KB
/
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
38
39
40
41
#!/usr/bin/env bash
set -euo pipefail
DOTFILES=~/.dotfiles
if [ -d $DOTFILES ]; then
echo "$DOTFILES already exists! Aborting."
exit 1
fi
# Fetch dotfiles
git clone https://github.com/padde/dotfiles.git $DOTFILES
cd $DOTFILES
# Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# Install homebrew packages
brew update
brew tap Homebrew/bundle
brew bundle
# Symlink dotfiles
rcup -v rcrc
rcup -v
# Install Vim plugins
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
vim +PlugInstall +qall < /dev/tty "$@"
# Install TMUX plugins
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
~/.tmux/plugins/tpm/bindings/install_plugins
# Install ASDF version manager
cd "$HOME"
git clone https://github.com/asdf-vm/asdf.git ~/.asdf
# Install Chrome dotfiles
git clone https://github.com/matthewhadley/chromedotfiles.git ~/.chromedotfiles
ln -vs ~/.js ~/.chromedotfiles/chromedotfiles