-
Notifications
You must be signed in to change notification settings - Fork 49
/
Makefile
31 lines (23 loc) · 884 Bytes
/
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
name = $(shell git config user.name)
email = $(shell git config user.email)
username = $(shell git config user.username)
install:
touch ~/.hushlogin
mkdir -p ~/.config && cp -R config/ ~/.config/
cp -R {.ackrc,.gitconfig,.gitignore,.zshrc,.zsh_plugins.txt} ~
rm -rf ~/.zsh/ && cp -R zsh/ ~/.zsh/
mkdir -p ~/.bin && cp -R bin/* ~/.bin
git config --global user.name "$(name)"
git config --global user.email $(email)
git config --global user.username $(username)
utils:
swiftc utils/del.swift -o ~/.bin/del
backup: backup.brew backup.terminal
backup.brew:
brew leaves --installed-on-request > brew/brew-list.txt
brew list --cask > brew/brew-list-cask.txt
brew tap > brew/brew-tap.txt
backup.terminal:
cp ~/Library/Preferences/com.apple.Terminal.plist terminal/com.apple.Terminal.plist
plutil -convert xml1 terminal/com.apple.Terminal.plist
.PHONY: $(MAKECMDGOALS)