-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
109 lines (83 loc) · 2.35 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
.PHONY: *
CONFIG=~/config
brew_dump:
brew bundle dump -f
npm_global_dump:
npm list --global --parseable --depth=0 | sed '1d' | awk '{gsub(/\/.*\//,"",$$1); print}' > Npmfile
cargo_dump:
cargo install --list > Cargofile
pipx_dump:
pipx list --short > Pipxfile
dump:
$(MAKE) brew_dump
$(MAKE) npm_global_dump
$(MAKE) cargo_dump
$(MAKE) pipx_dump
push:
git commit -m "$(shell date)" -a
git push
brew_install:
brew bundle
npm_install_from_dumped:
xargs npm install --global < Npmfile
set_zshrc:
ln -sf ${CONFIG}/zsh/zshrc ~/.zshrc
ln -sf ${CONFIG}/zsh/zprofile ~/.zprofile
set_radare2rc:
ln -sf ${CONFIG}/radare2/radare2rc ~/.radare2rc
set_vimrc:
ln -sf ${CONFIG}/nvim ~/.config/
set_tmux:
ln -sf ${CONFIG}/tmux/tmux.conf ~/.tmux.conf
set_alacritty:
ln -sf ${CONFIG}/alacritty/alacritty.yml ~/.config/alacritty.yml
set_gitui_keybind:
ln -sf ${CONFIG}/gitui/key_bindings.ron ~/.config/gitui/key_bindings.ron
set_weechat:
ln -sf ${CONFIG}/weechat ~/.weechat
set_mutt:
ln -sf ${CONFIG}/mutt ~/.mutt
set_globalpip:
ln -sf ${CONFIG}/global-pip ~/.globalpip
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
cd ~/.globalpip && poetry install
set_gh_dash:
ln -sf ${CONFIG}/gh-dash ~/.config/gh-dash
set_gitignore:
git config --global core.excludesfile ${CONFIG}/global_gitignore
set_pull_submodules:
git submodule update --recursive --remote
set_mac_window_manager:
ln -sf ${CONFIG}/window-management/mac/yabairc ~/.yabairc
ln -sf ${CONFIG}/window-management/mac/skhdrc ~/.skhdrc
ln -sf ${CONFIG}/window-management/mac/sketchybar ~/.config/sketchybar
ln -sf ${CONFIG}/window-management/mac/borders ~/.config/borders
set_taskwarrior:
ln -sf ${CONFIG}/taskwarrior/hooks ~/.task
ln -sf ${CONFIG}/taskwarrior/taskrc ~/.taskrc
set_newsboat:
ln -sf ${CONFIG}/newsboat/urls ~/.newsboat/urls
ln -sf ${CONFIG}/newsboat/config ~/.newsboat/config
ln -sf ${CONFIG}/newsboat/scripts ~/.newsboat/scripts
set_zellij:
ln -sf ${CONFIG}/zellij ~/.config/zellij
set_all:
$(MAKE) set_zshrc
$(MAKE) set_radare2rc
$(MAKE) set_vimrc
$(MAKE) set_tmux
$(MAKE) set_alacritty
$(MAKE) set_gitui_keybind
$(MAKE) set_weechat
$(MAKE) set_mutt
$(MAKE) set_globalpip
$(MAKE) set_gitignore
$(MAKE) set_mac_window_manager
$(MAKE) set_newsboat
$(MAKE) set_zellij
upgrade-all:
npm upgrade -g
pipx upgrade-all
cargo install-update -a
brew upgrade