-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
48 lines (42 loc) · 1.6 KB
/
setup.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
#!/usr/bin/env bash
# install homebrew
if [ ! -x "$(command -v brew)" ]; then
echo "$(tput setaf 2)> Installing homebrew...$(tput sgr 0)"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
# install oh-my-zsh
if [ ! -d ~/.oh-my-zsh ]; then
echo "$(tput setaf 2)> Installing oh-my-zsh...$(tput sgr 0)"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
# install homebrew packages
echo "$(tput setaf 2)> Installing homebrew packages...$(tput sgr 0)"
brew install git
brew install eza
brew install bat
brew install asdf
brew install diff-so-fancy
brew install fzf
brew install michaeldfallen/formula/git-radar
brew tap cantino/mcfly && brew install mcfly
# link dotfiles
echo "$(tput setaf 2)> Linking dotfiles...$(tput sgr 0)"
ln -sf ~/sites/dotfiles/ackrc ~/.ackrc
ln -sf ~/sites/dotfiles/bashrc ~/.bashrc
ln -sf ~/sites/dotfiles/editorconfig ~/.editorconfig
ln -sf ~/sites/dotfiles/gemrc ~/.gemrc
ln -sf ~/sites/dotfiles/gitconfig ~/.gitconfig
ln -sf ~/sites/dotfiles/irbrc ~/.irbrc
ln -sf ~/sites/dotfiles/pryrc ~/.pryrc
ln -sf ~/sites/dotfiles/psqlrc ~/.psqlrc
ln -sf ~/sites/dotfiles/rspec ~/.rspec
ln -sf ~/sites/dotfiles/screenrc ~/.screenrc
ln -sf ~/sites/dotfiles/sqliterc ~/.sqliterc
ln -sf ~/sites/dotfiles/tmux.conf ~/.tmux.conf
ln -sf ~/sites/dotfiles/vimrc ~/.vimrc
ln -sf ~/sites/dotfiles/zshrc ~/.zshrc
# link ZSH theme
ln -sf ~/sites/dotfiles/zsh/travis.zsh-theme ~/.oh-my-zsh/themes/travis.zsh-theme
# link vim theme
mkdir -p ~/.vim/colors
ln -sf ~/sites/dotfiles/vim/railscasts.vim ~/.vim/colors/railscasts.vim