From eb725c976f60b5cfb96b9c0bf434f3e2b96674d8 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Thu, 13 Apr 2023 03:28:06 -0400 Subject: [PATCH] completions/fish: use @@PREFIX@@ --- .gitignore | 1 + Makefile | 4 ++-- completions/{xmirror.fish => xmirror.fish.in} | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) rename completions/{xmirror.fish => xmirror.fish.in} (92%) diff --git a/.gitignore b/.gitignore index 23214ce..a766ea9 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ xmirror .help _site/ completions/_xmirror +completions/xmirror.fish diff --git a/Makefile b/Makefile index faffacb..531303d 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ xmirror: xmirror.in chmod +x $@+ mv $@+ $@ -completions: completions/_xmirror +completions: completions/_xmirror completions/xmirror.fish completions/%: completions/%.in sed -e "s,@@PREFIX@@,$(PREFIX),g" $< >$@ @@ -25,7 +25,7 @@ install: all install -Dm 644 xmirror.1 -t $(DESTDIR)$(PREFIX)/share/man/man1 clean: - rm -rf xmirror _site completions/_xmirror + rm -rf xmirror _site completions/_xmirror completions/xmirror.fish README: xmirror.1 mandoc -Tutf8 $< | col -bx >$@ diff --git a/completions/xmirror.fish b/completions/xmirror.fish.in similarity index 92% rename from completions/xmirror.fish rename to completions/xmirror.fish.in index 3bbc703..ec426ec 100644 --- a/completions/xmirror.fish +++ b/completions/xmirror.fish.in @@ -1,7 +1,7 @@ complete -c xmirror -f function __xmirror_complete_mirrors - string match -vr '^\s*#'