-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
113 lines (85 loc) · 2.33 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
110
111
112
113
.ONESHELL:
.PHONY: *
help:
@echo Use make all for git tig vim settings
all: git tig vim gpg
mkdir -p ~/git
other: zsh fzf log pass mutt tmux
git:
rm -f ~/.gitconfig
ln -s `pwd`/gitconfig ~/.gitconfig
mkdir -p ~/git
tig:
ln -sf `pwd`/tigrc ~/.tigrc
vim:
ln -sfT `pwd`/vim ~/.config/vim
ln -sfT `pwd`/vim ~/.config/nvim
sudo ln -sfT `pwd`/vim /usr/local/share/vim
# vim-plug
# curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
gpg:
ln -sf `pwd`/misc/gpg-agent ~/.gnupg/gpg-agent.conf
gpgconf --reload gpg-agent
zsh:
ln -sf `pwd`/zsh/zshenv ~/.zshenv
mkdir -p ~/.config/zsh
ln -sf `pwd`/zsh/zshrc ~/.config/zsh/.zshrc
fzf:
if [ ! -d "$(HOME)/.fzf" ]; then
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf;
~/.fzf/install;
fi
log:
# vimwiki
if [ ! -d "$(HOME)/.vimwiki" ]; then
git clone vps:~/log ~/log;
fi
pass:
if [ ! -d "$(HOME)/.password-store" ]; then
git clone ssh://vps/~/.password-store ~/.password-store;
fi
~/.local/share/application:
mkdir -p $@
mutt: ~/.local/share/application
ln -sf `pwd`/mutt -T ~/.config/mutt
ln -sf `pwd`/mutt/mutt.desktop $<
pass mail/mutt.hooks >mutt/hooks.topo
tmux:
ln -sf `pwd`/misc/tmux.conf ~/.tmux.conf
crontab:
(crontab -l 2>/dev/null; cat bin/cron/* | sed '/^#/ d') | crontab -
# Swap Ctrl-Caps in X11
libinput:
sudo ln -sf `pwd`/X11/libinput/* /etc/X11/xorg.conf.d/
# Swap Ctrl-Caps in tty2~6
console:
sudo ln -sf `pwd`/misc/vconsole.conf /etc/vconsole.conf
sudo systemctl restart systemd-vconsole-setup.service
task:
ln -sf $(HOME)/.task/taskrc $(HOME)/.taskrc
if [ ! -d "$(HOME)/.task/.git" ]; then
if [ -d "$(HOME)/.task" ]; then rm -rf "$(HOME)/.task"; fi;
git clone --depth 1 vps:~/.task ~/.task;
fi
blog:
if [ ! -d "$(HOME)/blog" ]; then
git clone ssh://vps/~/blog $(HOME)/blog;
fi
theme:
ln -sf `pwd`/X11/themes -T ~/.themes
openbox: theme
ln -sf `pwd`/X11/openbox/rc.xml ~/.config/openbox/
rofi:
ln -sf `pwd`/X11/rofi/config.rasi ~/.config/rofi/config.rasi
archcraft:
ls -sf `pwd`/bin/desktop/takeshot /usr/local/bin/takeshot
urlview:
ln -sf `pwd`/misc/urlview ~/.urlview
alacritty:
ln -sf `pwd`/X11/alacritty ~/.config/alacritty
mpd:
ln -sf `pwd`/X11/mpd/ncmpcpp ~/.config/ncmpcpp
rm -rf ~/.ncmpcpp
snippets:
rm -rf ~/snippets
ln -sf `pwd`/snippets ~/snippets