-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (44 loc) · 1.75 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
ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
all:
@printf "Usage: make install\n\n"
@printf "Description: \n"
@printf "\tInstalls everything!\n"
install: brewery managers dotfiles vim iterm
brewery: homebrew brews
managers: asdf tpm zplug
homebrew:
@printf "Installing Homebrew..."
/usr/bin/ruby -e "$$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brews:
@printf "Installing formulae from Brewfile..."
brew tap Homebrew/bundle
brew bundle
asdf:
@printf "Installing asdf..."
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.3.0
tpm:
@printf "Installing tpm..."
git clone https://github.com/tmux-plugins/tpm $(HOME)/.tmux/plugins/tpm
zplug:
@printf "Installing zplug and switching shell to zsh..."
chsh -s /bin/zsh
curl -sL --proto-redir -all,https https://zplug.sh/installer | zsh
dotfiles:
@printf "Linking dotfiles..."
mkdir -p $(HOME)/.config/git $(HOME)/.config/nvim
ln -sf $(ROOT_DIR)/vim/vimrc $(HOME)/.config/nvim/init.vim
ln -sf $(ROOT_DIR)/git/config $(HOME)/.config/git/config
ln -sf $(ROOT_DIR)/git/ignore $(HOME)/.config/git/ignore
ln -sf $(ROOT_DIR)/zsh/zshrc $(HOME)/.zshrc
ln -sf $(ROOT_DIR)/zsh/zshenv $(HOME)/.zshenv
ln -sf $(ROOT_DIR)/tmux/tmux.conf $(HOME)/.tmux.conf
touch $(HOME)/.hushlogin
vim:
@printf "Configuring Vim..."
curl -fLo $(HOME)/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
pip3 install neovim
nvim -c PlugInstall -c quitall
iterm:
@printf "Configuring iTerm..."
cp $(ROOT_DIR)/terminal/Sauce Code Pro Nerd Font Complete Mono.ttf $(HOME)/Library/Fonts/
cp -f $(ROOT_DIR)/terminal/com.googlecode.iterm2.plist $(HOME)/Library/Preferences