-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·37 lines (33 loc) · 984 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·37 lines (33 loc) · 984 Bytes
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
# Backup old dotfiles, delete, and add symlinks
if [ -f ~/.vimrc ]; then
echo "Found old vimrc, backing up"
cp ~/.vimrc vimrc_old
rm ~/.vimrc
fi
ln -s ~/.dot/.vimrc ~/.vimrc
if [ -f ~/.zpreztorc ]; then
echo "Found old zpreztorc, backing up"
cp ~/.zpreztorc zpreztorc_old
rm ~/.zpreztorc
fi
ln -s ~/.dot/.zpreztorc ~/.zpreztorc
if [ ! -d ~/.vim/bundle/vundle ]; then
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
fi
# If on OS X, clone the iterm theme and open the folder
# so it can be installed quickly
if [ "$(uname)" == "Darwin" ]; then
echo "In iTerm2, go to profiles > terminal and set the terminal type to 256color"
mkdir themes
cd themes
git clone https://github.com/chriskempson/base16-iterm2
cd base16-iterm2
open .
fi
# Install Homebrew
echo "Installing Homebrew"
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
# Install RVM
echo "Installing RVM"
\curl -L https://get.rvm.io | bash -s stable