-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
61 lines (51 loc) · 2.5 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
49
50
51
52
53
54
55
56
57
58
59
60
61
basedir=$(cd $(dirname $0) && pwd)
###########################################################################################
## Setup git secret
############################################################################################
git secrets --register-aws --global
git secrets --install ~/.git-templates/git-secrets
git config --global init.templateDir ~/.git-templates/git-secrets
###########################################################################################
## Setup Dotfiles
############################################################################################
echo setup dotfikes
ln -fns ${basedir}/templates/commit_template.txt ~/.commit_template
ln -fns ${basedir}/dotfiles/bash_profile ~/.bash_profile
ln -fns ${basedir}/dotfiles/bashrc ~/.bashrc
ln -fns ${basedir}/dotfiles/vimrc ~/.vimrc
ln -fns ${basedir}/dotfiles/gvimrc ~/.gvimrc
ln -fns ${basedir}/dotfiles/tmux.conf ~/.tmux.conf
ln -fns ${basedir}/dotfiles/gitconfig ~/.gitconfig
ln -fns ${basedir}/dotfiles/gemrc ~/.gemrc
ln -fns ${basedir}/dotfiles/bundle.config ~/.bundle/config
ln -fns ${basedir}/configs/yamllint/ ~/.config/yamllint
echo setup tmux configs
ln -fns ${basedir}/util/tmux-pbcopy /usr/local/bin/tmux-pbcopy
ln -fns ${basedir}/util/tmuxx /usr/local/bin/tmuxx
chmod +x /usr/local/bin/tmux-pbcopy
chmod +x /usr/local/bin/tmuxx
echo setup vim
ln -fns ${basedir}/vim ~/.vim
ln -fns ${basedir}/themas/dircolors-solarized ~/.dircolors-solarized
mkdir -p ~/.vim/colors/
ln -fns ${basedir}/themas/vimcolor/solarized.vim ~/.vim/colors/
echo setup bash_completion
ln -fns /Applications/Docker.app/Contents/Resources/etc/docker.bash-completion /usr/local/etc/bash_completion.d/docker
ln -fns /Applications/Docker.app/Contents/Resources/etc/docker-machine.bash-completion /usr/local/etc/bash_completion.d/docker-machine
ln -fns /Applications/Docker.app/Contents/Resources/etc/docker-compose.bash-completion /usr/local/etc/bash_completion.d/docker-compofse
cd ${basedir}
###########################################################################################
## Install Modules
############################################################################################
echo enable autoupdate homebrew
brew tap domt4/autoupdate
brew autoupdate --start --upgrade --cleanup --enable-notification
echo setup modules
sh installs/homebrew_install.sh
sh installs/ruby_install.sh
sh installs/python_install.sh
#sh installs/digdag_install.sh
#if [ ! `which gcloud` ]; then
# echo Install gcloud command
# curl https://sdk.cloud.google.com | bash
#fi