-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (22 loc) · 1.03 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
DIR=~/.dotfiles
all: install_packages symlinks install_vscode_packages configure_iterm
symlinks:
@ln -nsf $(DIR)/zshenv ~/.zshenv
@ln -nsf $(DIR)/asdfrc ~/.asdfrc
@ln -nsf $(DIR)/vimrc ~/.vimrc
@ln -nsf $(DIR)/gitconfig ~/.gitconfig
@ln -nsf $(DIR)/gemrc ~/.gemrc
@ln -nsf $(DIR)/bundle ~/.bundle
@ln -nsf $(DIR)/gitignore_global ~/.gitignore_global
@ln -s $(DIR)/vscode/settings.json ~/Library/Application\ Support/Code/User/settings.json
@ln -s $(DIR)/vscode/keybindings.json ~/Library/Application\ Support/Code/User/keybindings.json
@ln -s $(DIR)/vscode/snippets ~/Library/Application\ Support/Code/User/snippets
install_packages:
brew install direnv asdf vim homebrew/cask-fonts/font-hack zsh-autosuggestions git
install_vscode_packages:
$(DIR)/vscode/install_vscode_packages
save_vscode_packages:
code --list-extensions > $(DIR)/vscode/extensions.txt
configure_iterm:
defaults write com.googlecode.iterm2.plist PrefsCustomFolder -string $(DIR)/iterm2
defaults write com.googlecode.iterm2.plist LoadPrefsFromCustomFolder -bool true