-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathMakefile
61 lines (49 loc) · 1.76 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
install: install-vim install-bash install-zsh install-psql \
install-virtualenvwrapper \
install-git install-python install-keybindings \
install-vscode
install-vim:
rm -rf ~/.vim ~/.vimrc
ln -s `pwd`/vim ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
install-sh:
rm -f ~/.myprofile
ln -s `pwd`/sh/myprofile ~/.myprofile
install-bash: install-sh
rm -f ~/.bashrc
ln -s `pwd`/bash/bashrc ~/.bashrc
install-zsh: install-sh
rm -f ~/.zshrc
ln -s `pwd`/zsh/zshrc ~/.zshrc
ln -s `pwd`/zsh/custom ~/.zsh-custom
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
cp `pwd`/osx/DefaultKeyBinding.dict ~/Library/KeyBindings/DefaultKeyBinding.dict
install-vscode:
mkdir -p ~/Library/Application Support/Code/User
rm -f ~/Library/Application\ Support/Code/User/settings.json
rm -f ~/Library/Application\ Support/Code/User/keybindings.json
ln -s `pwd`/vscode/settings.json ~/Library/Application\ Support/Code/User
ln -s `pwd`/vscode/keybindings.json ~/Library/Application\ Support/Code/User