-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
76 lines (60 loc) · 2.2 KB
/
Makefile
File metadata and controls
76 lines (60 loc) · 2.2 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
DIR=$(HOME)/dotfiles
DEB_GO='https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz'
HOMEBREW_URL='https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh'
osx: symlinks copy brew cask python_env go_env vundle govim osxkeychain zsh
deb: symlinks copy apt-get python_env go_env godeb vundle govim zsh
base: symlinks copy vundle
symlinks:
@mkdir -p $(HOME)/.tmp
@mkdir -p $(DIR)/vim/vim/bundle
@ln -sf $(DIR)/shell/profile $(HOME)/.profile
@ln -sf $(DIR)/shell/bashrc $(HOME)/.bashrc
@ln -sf $(DIR)/shell/zshrc $(HOME)/.zshrc
@ln -nsf $(DIR)/vim/vim $(HOME)/.vim
@ln -sf $(DIR)/vim/vimrc $(HOME)/.vimrc
@ln -sf $(DIR)/tmux/tmux.conf $(HOME)/.tmux.conf
@ln -sf $(DIR)/tmux/tmux-osx.conf $(HOME)/.tmux-osx.conf
@ln -sf $(DIR)/git/gitignore_global $(HOME)/.gitignore_global
copy:
@cp -fH $(DIR)/shell/bash_profile $(HOME)/.bash_profile
@cp -fH $(DIR)/git/gitconfig $(HOME)/.gitconfig
ensure_brew:
sudo true
xcode-select --install | true
curl -fsSL $(HOMEBREW_URL) | /bin/bash
$$(/opt/homebrew/bin/brew shellenv)
softwareupdate --install-rosetta --agree-to-license
curl -fsSL $(HOMEBREW_URL) | arch -x86_64 /bin/bash
brew:
brew update
brew upgrade
brew bundle install
brew cleanup
@echo "Remember: Run brew doctor afterwords"
apt-get:
sudo apt-get update
sudo cat "$(DIR)/debian/packages.list" | sudo xargs apt-get -y install
sudo dpkg-divert --local --divert /usr/bin/ack --rename --add /usr/bin/ack-grep
python_env:
command -v easy_install >/dev/null 2>&1 || { curl https://bootstrap.pypa.io/ez_setup.py -o - | sudo python; }
command -v pip >/dev/null 2>&1 || sudo easy_install pip
sudo pip install virtualenv
sudo pip install virtualenvwrapper
go_env:
mkdir -p $(HOME)/go
export GOPATH=$(HOME)/go
godeb:
command -v go >/dev/null 2>&1 || { curl $(DEB_GO) -o - | sudo tar -C /usr/local -xz; }
govim: vundle
vim +GoInstallBinaries +qall
vundle: symlinks patch_vim
if [ ! -d $(HOME)/.vim/bundle/Vundle.vim ]; then \
git clone https://github.com/gmarik/Vundle.vim.git $(HOME)/.vim/bundle/Vundle.vim; \
fi
vim +PluginInstall +qall
patch_vim:
vim -Nu NONE -S $(DIR)/vim/netrw_fix.vim +qall
zsh: symlinks
chsh -s /bin/zsh
osxkeychain:
git config --global credential.helper osxkeychain