aboutsummaryrefslogblamecommitdiffstats
path: root/bash-completion/Makefile
blob: edf700d5b824cd828b955fdb20bb851871cec120 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11




                                            

                                                                                                              



                                                                                                   
                                             



                                                           
.POSIX:

install:
	mkdir -p -- ~/.config/bash/aliases.d
	mkdir -p -- ~/.config/bash/bashrc.d
	test ! -e ~/.config/bash/aliases.d/bash-completion || test -L ~/.config/bash/aliases.d/bash-completion
	test ! -e ~/.config/bash/bashrc.d/bash-completion || test -L ~/.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:
	+! ../check-installed bash-completion
	-unlink -- ~/.config/bash/aliases.d/bash-completion
	-unlink -- ~/.config/bash/bashrc.d/bash-completion
	-rmdir -- ~/.config/bash/aliases.d
	-rmdir -- ~/.config/bash/bashrc.d