-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
64 lines (48 loc) · 1.89 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
62
63
64
# make make behave properly
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
setup: brew-bundle zsh-completion configs
configs:
@ln -fvs ~/.emacs.d/etc/zshrc ~/.zshrc
@ln -fvs ~/.emacs.d/etc/zshrc ~/.profile
@ln -fvs ~/.emacs.d/etc/gitconfig ~/.gitconfig
@ln -fvs ~/.emacs.d/etc/gitignore_global ~/.gitignore_global
@mkdir -p ~/.config/clojure-lsp
@ln -fvs ~/.emacs.d/etc/clojure-lsp-config.edn ~/.config/clojure-lsp/config.edn
@mkdir -p ~/.clojure/
@rm -rf ~/.clojure
@ln -fvs ~/.emacs.d/etc/clojure ~/.clojure
@ln -fvs ~/.emacs.d/etc/psqlrc ~/.psqlrc
@ln -fvs ~/.emacs.d/etc/tmux.conf ~/.tmux.conf
@mkdir -p ~/.lein
@ln -fvs ~/.emacs.d/etc/lein/profiles.clj ~/.lein/profiles.clj
@ln -fvs ~/.emacs.d/etc/wezterm.lua ~/.wezterm.lua
brew-bundle:
HOMEBREW_AUTO_UPDATE_SECS=9600 brew bundle
zsh-completion:
mkdir -p ~/.emacs.d/etc/zsh/
ln -fvs /Library/Developer/CommandLineTools/usr/share/git-core/git-completion.zsh ~/.emacs.d/etc/zsh/_git
ln -fvs /System/Volumes/Data/Applications/Docker.app/Contents/Resources/etc/docker.zsh-completion ~/.emacs.d/etc/zsh/_docker
ln -fvs /System/Volumes/Data/Applications/Docker.app/Contents/Resources/etc/docker-compose.zsh-completion ~/.emacs.d/etc/zsh/_docker-compose
# macOS apps things, not related to Emacs
start-comms:
open -g -a Slack
open -g -a Fantastical
open -g -a MailMate
open -g -a Linear
stop-comms:
pkill -f "(Slack|MailMate|Linear|Dash)"
start-dev:
open -g -a Docker
open -g -a Emacs
stop-dev:
pkill -f "(Emacs|Docker|Dash)"
fix-macos:
defaults write com.apple.finder ShowPathbar -bool true
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
sudo defaults write com.apple.menuextra.clock DateFormat -string "EEE d MMM HH:mm"
sudo killall SystemUIServer