-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (30 loc) · 1.12 KB
/
Makefile
File metadata and controls
40 lines (30 loc) · 1.12 KB
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
name := $(shell git config user.name)
email := $(shell git config user.email)
username := $(shell git config user.username)
install:
touch ~/.hushlogin
rsync -a configs/.config/ ~/.config/
rsync -a {.ackrc,.gitconfig,.gitignore,.zshrc,.zsh_plugins.txt} ~/
rsync -a --delete zsh/ ~/.zsh/
rsync -a bin/. ~/.bin/
git config --global user.name "$(name)"
git config --global user.email "$(email)"
git config --global user.username "$(username)"
@echo "\nDone! Run 'exec zsh' to reload your shell."
utils:
swiftc utils/del.swift -o ~/.bin/del
swiftc utils/password.swift -o ~/.bin/password
swiftc utils/encode64.swift -o ~/.bin/encode64
swiftc utils/backup.swift -o ~/.bin/backup
backup: backup.apps backup.terminal backup.configs
backup.configs:
backup -c backup.json configs
backup.apps:
brew leaves --installed-on-request > apps/brew-list.txt
brew list --cask > apps/brew-list-cask.txt
brew tap > apps/brew-tap.txt
mas list > apps/mas-list.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)