-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
35 lines (27 loc) · 1.1 KB
/
Makefile
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
install: dotfiles vim iterm-apply
dotfiles:
@echo "Installing non-vim dotfiles..."
@for full_file_path in $(shell find `pwd` -name ".*" -not -name ".git" -not -name ".vimrc"); do \
ff=$$(basename $$full_file_path); \
ln -sf $$full_file_path $(HOME)/$$ff; \
done
vim:
@echo "Installing vim dotfiles..."
@rm -rf ~/.vim/bundle/Vundle.vim
@git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
@echo "so ~/.vim/.vimrc" > $(HOME)/.vimrc
@mkdir -p $(HOME)/.vim/
@ln -sf $(shell find `pwd` -name ".vimrc") $(HOME)/.vim/.vimrc
@vim +PluginInstall +qall
ITERM_CONFIG=com.googlecode.iterm2.plist
ITERM_CONFIG_PATH=/Users/$(USER)/Library/Preferences/$(ITERM_CONFIG)
iterm-apply:
@cp ./iterm2/$(ITERM_CONFIG) ./iterm2/$(ITERM_CONFIG).binary
@plutil -convert binary1 ./iterm2/$(ITERM_CONFIG).binary
@cp ./iterm2/$(ITERM_CONFIG).binary $(ITERM_CONFIG_PATH)
@defaults read $(ITERM_CONFIG_PATH)
@rm -f ./iterm2/$(ITERM_CONFIG).binary
iterm-capture:
@cp -f $(ITERM_CONFIG_PATH) ./iterm2/.
@plutil -convert xml1 ./iterm2/$(ITERM_CONFIG)
.PHONY: install dotfiles vim iterm-apply iterm-capture