diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-05-12 23:37:19 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-05-12 23:37:19 +0800 |
commit | 29ee36b708cb89ba8a91b39bc17ba6442c25c392 (patch) | |
tree | fc5ce67ce503d86468d0b47e77e3d8ce358d6ec4 /Makefile | |
parent | b6e40bb0bd42d0d9ec757d6e0c38a03898bb248e (diff) |
Update
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 41 |
1 files changed, 21 insertions, 20 deletions
@@ -1,13 +1,15 @@ | |||
1 | .ONESHELL: | 1 | .ONESHELL: |
2 | .PHONY: * | 2 | .PHONY: * |
3 | 3 | ||
4 | all: git vim git tig gpg | 4 | all: git tig vim gpg |
5 | mkdir -p ~/git | 5 | mkdir -p ~/git |
6 | 6 | ||
7 | other: zsh fzf wiki pass mutt tmux | ||
8 | |||
7 | git: | 9 | git: |
8 | rm -f ~/.gitconfig | 10 | rm -f ~/.gitconfig |
9 | ln -s `pwd`/gitconfig ~/.gitconfig | 11 | ln -s `pwd`/gitconfig ~/.gitconfig |
10 | mkdir -p ~/HOME/git | 12 | mkdir -p ~/git |
11 | 13 | ||
12 | tig: | 14 | tig: |
13 | ln -sf `pwd`/tigrc ~/.tigrc | 15 | ln -sf `pwd`/tigrc ~/.tigrc |
@@ -22,6 +24,10 @@ vim: | |||
22 | curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | 24 | curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |
23 | ln -sf `pwd`/vimrc ~/.vim_runtime/my_configs.vim | 25 | ln -sf `pwd`/vimrc ~/.vim_runtime/my_configs.vim |
24 | 26 | ||
27 | gpg: | ||
28 | ln -sf `pwd`/misc/gpg-agent ~/.gnupg/gpg-agent.conf | ||
29 | gpgconf --reload gpg-agent | ||
30 | |||
25 | zsh: | 31 | zsh: |
26 | curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | bash | 32 | curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | bash |
27 | 33 | ||
@@ -37,6 +43,19 @@ wiki: | |||
37 | git clone git@github.com:typebrook/wiki.git ~/vimwiki; | 43 | git clone git@github.com:typebrook/wiki.git ~/vimwiki; |
38 | fi | 44 | fi |
39 | 45 | ||
46 | pass: | ||
47 | if [ ! -d "$(HOME)/.password-store" ]; then | ||
48 | git clone ssh://vps/~/.password-store ~/.password-store; | ||
49 | fi | ||
50 | |||
51 | mutt: | ||
52 | mkdir -p ~/.config/mutt | ||
53 | ln -sf `pwd`/mutt/muttrc ~/.config/mutt/muttrc | ||
54 | ln -sf `pwd`/mutt/mailcap ~/.mailcap | ||
55 | |||
56 | tmux: | ||
57 | ln -sf `pwd`/misc/tmux.conf ~/.tmux.conf | ||
58 | |||
40 | crontab: | 59 | crontab: |
41 | (crontab -l 2>/dev/null; cat tools/cron/* | sed '/^#/ d') | crontab - | 60 | (crontab -l 2>/dev/null; cat tools/cron/* | sed '/^#/ d') | crontab - |
42 | 61 | ||
@@ -50,29 +69,11 @@ task: | |||
50 | git clone --depth 1 git@github.com:typebrook/task.git ~/.task; | 69 | git clone --depth 1 git@github.com:typebrook/task.git ~/.task; |
51 | fi | 70 | fi |
52 | 71 | ||
53 | gpg: | ||
54 | ln -sf `pwd`/misc/gpg-agent ~/.gnupg/gpg-agent.conf | ||
55 | gpgconf --reload gpg-agent | ||
56 | |||
57 | mutt: | ||
58 | mkdir -p ~/.config/mutt | ||
59 | ln -sf `pwd`/mutt/muttrc ~/.config/mutt/muttrc | ||
60 | ln -sf `pwd`/mutt/mailcap ~/.mailcap | ||
61 | |||
62 | tmux: | ||
63 | ln -sf `pwd`/misc/tmux.conf ~/.tmux.conf | ||
64 | |||
65 | # Blog on my VPS | ||
66 | blog: | 72 | blog: |
67 | if [ ! -d "$(HOME)/blog" ]; then | 73 | if [ ! -d "$(HOME)/blog" ]; then |
68 | git clone ssh://vps/~/blog $(HOME)/blog; | 74 | git clone ssh://vps/~/blog $(HOME)/blog; |
69 | fi | 75 | fi |
70 | 76 | ||
71 | pass: | ||
72 | if [ ! -d "$(HOME)/.password-store" ]; then | ||
73 | git clone ssh://vps/~/.password-store ~/.password-store; | ||
74 | fi | ||
75 | |||
76 | openbox: | 77 | openbox: |
77 | ln -sf `pwd`/misc/openbox/rc.xml ~/.config/openbox/ | 78 | ln -sf `pwd`/misc/openbox/rc.xml ~/.config/openbox/ |
78 | 79 | ||