diff options
author | Mattias Andrée <maandree@kth.se> | 2021-06-26 10:44:58 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-06-26 10:45:01 +0200 |
commit | 3e7d34263a2a53c8a85e6b0a62b65bf3003d0122 (patch) | |
tree | a9730ed04288c3496d79e44e218225755f9ee915 /readline/Makefile | |
parent | bus xinitrc: create display bus, not audio bus (diff) | |
download | dotfiles-3e7d34263a2a53c8a85e6b0a62b65bf3003d0122.tar.gz dotfiles-3e7d34263a2a53c8a85e6b0a62b65bf3003d0122.tar.bz2 dotfiles-3e7d34263a2a53c8a85e6b0a62b65bf3003d0122.tar.xz |
Add inputrc for readline + m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | readline/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/readline/Makefile b/readline/Makefile new file mode 100644 index 0000000..288907c --- /dev/null +++ b/readline/Makefile @@ -0,0 +1,18 @@ +.POSIX: +include ../common.mk + +install: + mkdir -p -- ~/.config + test ! -d ~/.config/inputrc + test ! -d ~/.inputrc + ln -sf -- ~/.dotfiles/readline/inputrc ~/.config/inputrc + ln -sf -- .config/inputrc ~/.inputrc + +uninstall: + -if ! $(CHECK_INSTALLED) readline 2>/dev/null && \ + ! $(CHECK_INSTALLED) libreadline 2>/dev/null; then \ + unlink -- ~/.config/inputrc; \ + unlink -- ~/.inputrc; \ + fi + +.PHONY: install uninstall |