forked from mitsuhiko/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (36 loc) · 1.24 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
36
37
38
39
40
41
42
43
44
45
install: install-vim install-bash install-psql \
install-virtualenvwrapper \
install-terminal-settings install-git \
install-python install-keybindings
install-vim:
rm -rf ~/.vim ~/.vimrc
ln -s `pwd`/vim ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
install-bash:
rm -f ~/.bashrc
ln -s `pwd`/bash/bashrc ~/.bashrc
install-psql:
rm -f ~/.psqlrc
ln -s `pwd`/psql/psqlrc ~/.psqlrc
install-git:
rm -f ~/.gitconfig
ln -s `pwd`/git/gitconfig ~/.gitconfig
install-virtualenvwrapper:
mkdir -p ~/.virtualenvs
ln -sf `pwd`/virtualenvwrapper/* ~/.virtualenvs
install-python:
rm -f ~/.pythonstartup.py
ln -s `pwd`/python/pythonstartup.py ~/.pythonstartup.py
dump-terminal-settings:
cp ~/Library/Preferences/com.apple.Terminal.plist terminal
plutil -convert xml1 terminal/com.apple.Terminal.plist
install-terminal-settings:
ifeq ($(shell uname),Darwin)
cp ~/Library/Preferences/com.apple.Terminal.plist terminal/old-settings.bak
cp terminal/com.apple.Terminal.plist ~/Library/Preferences
@echo "Old terminal settings were saved in terminal folder"
endif
install-keybindings:
rm -f ~/Library/KeyBindings/DefaultKeyBinding.dict
mkdir -p ~/Library/KeyBindings
ln -s `pwd`/osx/DefaultKeyBinding.dict ~/Library/KeyBindings/DefaultKeyBinding.dict