2018-07-22 21:42:42 +00:00
|
|
|
YELLOW = $$(tput setaf 226)
|
|
|
|
GREEN = $$(tput setaf 46)
|
|
|
|
RED = $$(tput setaf 196)
|
|
|
|
RESET = $$(tput sgr0)
|
|
|
|
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
UNAME = Windows
|
|
|
|
else
|
|
|
|
UNAME_S := $(shell uname -s)
|
|
|
|
ifeq ($(UNAME_S),Linux)
|
|
|
|
UNAME = Linux
|
|
|
|
endif
|
|
|
|
UNAME ?= Other
|
|
|
|
endif
|
|
|
|
|
|
|
|
install:
|
|
|
|
@make $(UNAME)
|
|
|
|
|
2024-09-13 05:55:18 +00:00
|
|
|
Linux: bash bin byobu fish git gnupg mutt nvim vim weechat
|
2018-07-23 06:01:47 +00:00
|
|
|
Windows: bash git vim
|
|
|
|
Other: bash git vim
|
2018-07-22 21:42:42 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@printf "$(RED)--- clean -----------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" -D bash
|
2018-10-01 04:51:07 +00:00
|
|
|
stow -t "$$HOME" -D bin
|
|
|
|
stow -t "$$HOME" -D byobu
|
2018-07-22 21:42:42 +00:00
|
|
|
stow -t "$$HOME" -D fish
|
|
|
|
stow -t "$$HOME" -D git
|
2018-10-01 04:51:07 +00:00
|
|
|
stow -t "$$HOME" -D gnupg
|
2018-07-22 21:42:42 +00:00
|
|
|
stow -t "$$HOME" -D mutt
|
2018-10-01 04:51:07 +00:00
|
|
|
stow -t "$$HOME" -D nvim
|
|
|
|
stow -t "$$HOME" -D vim
|
2018-07-22 21:42:42 +00:00
|
|
|
stow -t "$$HOME" -D weechat
|
|
|
|
|
|
|
|
bash:
|
|
|
|
@printf "$(YELLOW)--- bash -----------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" bash
|
|
|
|
|
2020-09-29 18:02:26 +00:00
|
|
|
bin:
|
2018-10-01 04:51:07 +00:00
|
|
|
@printf "$(YELLOW)--- bin ------------------------------------------------\n$(RESET)"
|
2019-03-26 01:03:36 +00:00
|
|
|
mkdir -p "$$HOME/bin"
|
2018-10-01 04:51:07 +00:00
|
|
|
stow -t "$$HOME" bin
|
|
|
|
|
|
|
|
byobu:
|
|
|
|
@printf "$(YELLOW)--- byobu ----------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" byobu
|
|
|
|
|
2019-03-25 22:21:09 +00:00
|
|
|
fish:
|
2018-07-22 21:42:42 +00:00
|
|
|
@printf "$(YELLOW)--- fish -----------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" fish
|
|
|
|
|
|
|
|
git:
|
|
|
|
@printf "$(YELLOW)--- git ------------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" git
|
|
|
|
|
2018-10-01 04:51:07 +00:00
|
|
|
gnupg:
|
|
|
|
@printf "$(YELLOW)--- gnupg ----------------------------------------------\n$(RESET)"
|
|
|
|
mkdir -p "$$HOME/.gnupg"
|
|
|
|
chmod 700 "$$HOME/.gnupg"
|
|
|
|
stow -t "$$HOME" gnupg
|
|
|
|
|
|
|
|
mutt:
|
|
|
|
@printf "$(YELLOW)--- mutt -----------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" mutt
|
2018-07-22 21:42:42 +00:00
|
|
|
|
2018-08-05 14:07:29 +00:00
|
|
|
nvim:
|
|
|
|
@printf "$(YELLOW)--- nvim -----------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" nvim
|
|
|
|
|
2018-10-01 04:51:07 +00:00
|
|
|
vim:
|
|
|
|
@printf "$(YELLOW)--- vim ------------------------------------------------\n$(RESET)"
|
2019-08-13 21:06:27 +00:00
|
|
|
mkdir -p ~/.vim/{undodir,swap,backup}
|
|
|
|
chmod 700 ~/.vim/{undodir,swap,backup}
|
2022-12-03 04:09:58 +00:00
|
|
|
git submodule update --remote --init -- vim/.vim/pack/plugins
|
2018-10-01 04:51:07 +00:00
|
|
|
stow -t "$$HOME" vim
|
|
|
|
|
2018-07-22 21:42:42 +00:00
|
|
|
weechat:
|
|
|
|
@printf "$(YELLOW)--- weechat --------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" weechat
|
|
|
|
|
2019-03-25 22:15:02 +00:00
|
|
|
nuke:
|
2019-03-25 22:21:09 +00:00
|
|
|
@printf "$(RED)--- nuking existing files ------------------------------\n$(RESET)"
|
2019-03-25 22:15:02 +00:00
|
|
|
rm -rf ~/.byobu ~/.config/fish ~/.fzf ~/.bash*
|
|
|
|
|
2024-09-13 05:55:18 +00:00
|
|
|
.PHONY: bash fish git vim nvim mutt byobu weechat gnupg bin clean install nuke Windows Linux Other
|