forked from junhyeokahn/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install
36 lines (26 loc) · 927 Bytes
/
install
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
#!/bin/bash
############################################
# install.sh #
# Junhyeok Ahn ( [email protected] ) #
############################################
cd $(dirname $BASH_SOURCE)
BASE=$(pwd)
for rc in bashrc bash_profile bash_prompt vimrc tmux.conf; do
mkdir -pv bak
[ -e ~/.$rc ] && mv -v ~/.$rc bak/.$rc
ln -sfv $BASE/$rc ~/.$rc
done
if [ $(uname -s) = 'Darwin' ]; then
# Homebrew
[ -z "$(which brew)" ] &&
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Updating homebrew"
brew install git tmux vim reattach-to-user-namespace ctags-exuberant cmake
brew tap waltarix/homebrew-customs
brew install waltarix/homebrew-customs/tmux
brew cask install iterm2
xcode-select --install
fi
git config --global user.email "[email protected]"
git config --global user.name "junhyeokahn"
source ./install-vim