-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
97 lines (83 loc) · 2.87 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
LN = ln -fs
all:
@printf "Valid targets {with a prefix of 'rm' to remove}:\n\n"
@printf "\tgit\t - git config file\n"
@printf "\tshell\t - shell and related tools config files\n"
@printf "\truby\t - ruby (irb, gem) config files\n"
@printf "\tmutt\t - all email and news related dotfiles\n"
@printf "\tvim\t - Vim and Ex config files\n"
@printf "\tx11\t - all X11 related dotfiles (Xresources, spectrwm.conf)\n"
git:
${LN} ${PWD}/gitconfig ${HOME}/.gitconfig
hg:
${LN} ${PWD}/hgrc ${HOME}/.hgrc
ruby:
${LN} ${PWD}/gemrc ${HOME}/.gemrc
${LN} ${PWD}/irbrc ${HOME}/.irbrc
rmruby:
rm -f ${HOME}/.irbrc
rm -f ${HOME}/.gemrc
mutt:
mkdir -p ${HOME}/.mutt/cache/bodies
${LN} ${PWD}/mutt/binds ${HOME}/.mutt/binds
${LN} ${PWD}/mutt/colours ${HOME}/.mutt/colours
${LN} ${PWD}/mutt/headers ${HOME}/.mutt/headers
${LN} ${PWD}/mutt/hooks ${HOME}/.mutt/hooks
${LN} ${PWD}/mutt/imap ${HOME}/.mutt/imap
${LN} ${PWD}/mutt/mailboxes ${HOME}/.mutt/mailboxes
${LN} ${PWD}/mutt/mailcap ${HOME}/.mailcap
${LN} ${PWD}/mutt/mailing_lists ${HOME}/.mutt/mailing_lists
${LN} ${PWD}/mutt/muttrc ${HOME}/.muttrc
${LN} ${PWD}/mutt/pgp ${HOME}/.mutt/pgp
${LN} ${PWD}/mutt/sidebar ${HOME}/.mutt/sidebar
${LN} ${PWD}/mutt/smtp ${HOME}/.mutt/smtp
${LN} ${PWD}/mutt/sorting ${HOME}/.mutt/sorting
chmod -R go-rwx ${HOME}/.mutt
rmmutt:
rm -rf ${HOME}/.mutt/*
rm -f ${HOME}/.muttrc
shell:
${LN} ${PWD}/digrc ${HOME}/.digrc
cp -f my.cnf ${HOME}/.my.cnf
${LN} ${PWD}/psqlrc ${HOME}/.psqlrc
${LN} ${PWD}/toprc ${HOME}/.toprc
${LN} ${PWD}/tmux.conf ${HOME}/.tmux.conf
touch ${HOME}/.tmux.local
mkdir -p ${HOME}/.zsh/func
${LN} ${PWD}/zshrc ${HOME}/.zshrc
touch ${HOME}/.zshrc.local
mkdir -p ~/.ssh/
${LN} ${PWD}/ssh.config ${HOME}/.ssh/config
rmshell:
rm -f ${HOME}/.digrc
rm -f ${HOME}/.toprc
rm -f ${HOME}/.tmux.conf
rm -f ${HOME}/.zshrc
rm -f ${HOME}/.my.cnf
rm -f ${HOME}/.psqlrc
vim:
mkdir -p ${HOME}/.vim/pack/bundle/start
mkdir -p ${HOME}/.vim/autoload
curl -fLo ${HOME}/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
${LN} ${PWD}/vim/exrc ${HOME}/.exrc
${LN} ${PWD}/vim/vimrc ${HOME}/.vimrc
echo "Install plugins with :PlugInstall inside Vim"
rmvim:
rm -rf ${HOME}/.vim
rm -f ${HOME}/.vimrc
rm -f ${HOME}/.exrc
x11:
mkdir -p ~/sh
cp ${PWD}/x11/Xresources.day-mode ${HOME}/.Xresources.day-mode
cp ${PWD}/x11/Xresources.night-mode ${HOME}/.Xresources.night-mode
cp ${PWD}/x11/baraction.sh ${HOME}/sh/baraction.sh
cp ${PWD}/x11/initscreen.sh ${HOME}/sh/initscreen.sh
cp ${PWD}/x11/screenshot.sh ${HOME}/sh/screenshot.sh
${LN} ${PWD}/x11/xsessionrc ${HOME}/.xsessionrc
${LN} ${PWD}/x11/xbindkeysrc ${HOME}/.xbindkeysrc
${LN} ${PWD}/x11/xxkbrc ${HOME}/.xxkbrc
${LN} ${PWD}/x11/spectrwm.conf ${HOME}/.spectrwm.conf
rmx11:
rm -f ${HOME}/.Xresources
rm -f ${HOME}/.spectrwm.conf
.PHONY: all mutt rmmutt vim rmvim x11 rmx11 shell rmshell