-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
36 lines (30 loc) · 1003 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
#!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
linkTo() {
if [ ! -h $2 ]; then
ln -sn $1 $2
fi
return
}
# For MacOS; homebrew
# /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# brew bundle
# For MacOS; copy iterm config
# Specify the preferences directory
# mkdir -p $HOME/.config/iterm2
# cp $DIR/*.iterm2.plist $HOME/.config/iterm2
# defaults write com.googlecode.iterm2.plist PrefsCustomFolder -string "$HOME/.config/iterm2"
# # Tell iTerm2 to use the custom preferences in the directory
# defaults write com.googlecode.iterm2.plist LoadPrefsFromCustomFolder -bool true
# Install nvm
export NVM_DIR="$HOME/.nvm" && (
git clone https://github.com/creationix/nvm.git "$NVM_DIR"
cd "$NVM_DIR"
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" origin`
)
# Vim setup
mkdir -p ~/.vim
# configure git to use vim
git config --global core.editor "vim"
# tmux
linkTo $DIR/tmux/tmux.conf $HOME/.tmux.conf