-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmac_install.sh
executable file
·37 lines (29 loc) · 980 Bytes
/
mac_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
#!/bin/bash
if [ "$(uname)" != 'Darwin' ]; then
echo "This script is work on only macOS!" >&2
exit 1
fi
DOTDIR="${HOME}/dotfiles"
# show dotfile
defaults write com.apple.finder AppleShowAllFiles -boolean true
killall Finder
cd "${DOTDIR}"
curl -O https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
curl -O https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
# install softwares
source "${DOTDIR}/mac_brew.sh"
rbenv install 2.4.0
rbenv global 2.4.0
sudo gem install bundler
sudo gem install rails
# create sym-link
mkdir ~/.vim
ln -si ./.bashrc ~/.bashrc
ln -si ./.vimrc ~/.vimrc
ln -si ./.gvimrc ~/.gvimrc
ln -si ./dein.toml ~/.vim/dein.toml
ln -si ~/Google\ Drive/.ssh ~/.ssh
cd /usr/local/Cellar/git/*/etc/bash_completion.d/
sudo mkdir -p /usr/local/git/contrib/complation/
sudo mv git-completion.bash /usr/local/git/contrib/complation/
sudo mv git-prompt.sh /usr/local/git/contrib/complation/