aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-05-12 23:37:19 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2022-05-12 23:37:19 +0800
commit29ee36b708cb89ba8a91b39bc17ba6442c25c392 (patch)
treefc5ce67ce503d86468d0b47e77e3d8ce358d6ec4 /Makefile
parentb6e40bb0bd42d0d9ec757d6e0c38a03898bb248e (diff)
Update
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile41
1 files changed, 21 insertions, 20 deletions
diff --git a/Makefile b/Makefile
index 51b26af..d19663a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,15 @@
1.ONESHELL: 1.ONESHELL:
2.PHONY: * 2.PHONY: *
3 3
4all: git vim git tig gpg 4all: git tig vim gpg
5 mkdir -p ~/git 5 mkdir -p ~/git
6 6
7other: zsh fzf wiki pass mutt tmux
8
7git: 9git:
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
12tig: 14tig:
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
27gpg:
28 ln -sf `pwd`/misc/gpg-agent ~/.gnupg/gpg-agent.conf
29 gpgconf --reload gpg-agent
30
25zsh: 31zsh:
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
46pass:
47 if [ ! -d "$(HOME)/.password-store" ]; then
48 git clone ssh://vps/~/.password-store ~/.password-store;
49 fi
50
51mutt:
52 mkdir -p ~/.config/mutt
53 ln -sf `pwd`/mutt/muttrc ~/.config/mutt/muttrc
54 ln -sf `pwd`/mutt/mailcap ~/.mailcap
55
56tmux:
57 ln -sf `pwd`/misc/tmux.conf ~/.tmux.conf
58
40crontab: 59crontab:
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
53gpg:
54 ln -sf `pwd`/misc/gpg-agent ~/.gnupg/gpg-agent.conf
55 gpgconf --reload gpg-agent
56
57mutt:
58 mkdir -p ~/.config/mutt
59 ln -sf `pwd`/mutt/muttrc ~/.config/mutt/muttrc
60 ln -sf `pwd`/mutt/mailcap ~/.mailcap
61
62tmux:
63 ln -sf `pwd`/misc/tmux.conf ~/.tmux.conf
64
65# Blog on my VPS
66blog: 72blog:
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
71pass:
72 if [ ! -d "$(HOME)/.password-store" ]; then
73 git clone ssh://vps/~/.password-store ~/.password-store;
74 fi
75
76openbox: 77openbox:
77 ln -sf `pwd`/misc/openbox/rc.xml ~/.config/openbox/ 78 ln -sf `pwd`/misc/openbox/rc.xml ~/.config/openbox/
78 79