aboutsummaryrefslogtreecommitdiffstats
path: root/bash-completion/Makefile
blob: 7d9fcc9f38e23ae4075afecfca1c8187c973f3b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.POSIX:

install:
	mkdir -p -- ~/.config/bash/aliases.d
	mkdir -p -- ~/.config/bash/bashrc.d
	test ! -d ~/.config/bash/aliases.d/bash-completion
	test ! -d ~/.config/bash/bashrc.d/bash-completion
	ln -sf -- ~/.dotfiles/bash-completion/bash-aliases ~/.config/bash/aliases.d/bash-completion
	ln -sf -- ~/.dotfiles/bash-completion/bash-bashrc ~/.config/bash/bashrc.d/bash-completion

uninstall:
	-unlink -- ~/.config/bash/aliases.d/bash-completion
	-unlink -- ~/.config/bash/bashrc.d/bash-completion
	-rmdir -- ~/.config/bash/aliases.d
	-rmdir -- ~/.config/bash/bashrc.d

.PHONY: install uninstall