From 29ee36b708cb89ba8a91b39bc17ba6442c25c392 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Thu, 12 May 2022 23:37:19 +0800 Subject: Update --- Makefile | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 51b26af..d19663a 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,15 @@ .ONESHELL: .PHONY: * -all: git vim git tig gpg +all: git tig vim gpg mkdir -p ~/git +other: zsh fzf wiki pass mutt tmux + git: rm -f ~/.gitconfig ln -s `pwd`/gitconfig ~/.gitconfig - mkdir -p ~/HOME/git + mkdir -p ~/git tig: ln -sf `pwd`/tigrc ~/.tigrc @@ -22,6 +24,10 @@ vim: curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim ln -sf `pwd`/vimrc ~/.vim_runtime/my_configs.vim +gpg: + ln -sf `pwd`/misc/gpg-agent ~/.gnupg/gpg-agent.conf + gpgconf --reload gpg-agent + zsh: curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | bash @@ -37,6 +43,19 @@ wiki: git clone git@github.com:typebrook/wiki.git ~/vimwiki; fi +pass: + if [ ! -d "$(HOME)/.password-store" ]; then + git clone ssh://vps/~/.password-store ~/.password-store; + fi + +mutt: + mkdir -p ~/.config/mutt + ln -sf `pwd`/mutt/muttrc ~/.config/mutt/muttrc + ln -sf `pwd`/mutt/mailcap ~/.mailcap + +tmux: + ln -sf `pwd`/misc/tmux.conf ~/.tmux.conf + crontab: (crontab -l 2>/dev/null; cat tools/cron/* | sed '/^#/ d') | crontab - @@ -50,29 +69,11 @@ task: git clone --depth 1 git@github.com:typebrook/task.git ~/.task; fi -gpg: - ln -sf `pwd`/misc/gpg-agent ~/.gnupg/gpg-agent.conf - gpgconf --reload gpg-agent - -mutt: - mkdir -p ~/.config/mutt - ln -sf `pwd`/mutt/muttrc ~/.config/mutt/muttrc - ln -sf `pwd`/mutt/mailcap ~/.mailcap - -tmux: - ln -sf `pwd`/misc/tmux.conf ~/.tmux.conf - -# Blog on my VPS blog: if [ ! -d "$(HOME)/blog" ]; then git clone ssh://vps/~/blog $(HOME)/blog; fi -pass: - if [ ! -d "$(HOME)/.password-store" ]; then - git clone ssh://vps/~/.password-store ~/.password-store; - fi - openbox: ln -sf `pwd`/misc/openbox/rc.xml ~/.config/openbox/ -- cgit v1.2.3-70-g09d2