Skip to content

Commit eb725c9

Browse files
committed
completions/fish: use @@Prefix@@
1 parent a5d67fa commit eb725c9

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ xmirror
22
.help
33
_site/
44
completions/_xmirror
5+
completions/xmirror.fish

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ xmirror: xmirror.in
1212
chmod +x $@+
1313
mv $@+ $@
1414

15-
completions: completions/_xmirror
15+
completions: completions/_xmirror completions/xmirror.fish
1616

1717
completions/%: completions/%.in
1818
sed -e "s,@@PREFIX@@,$(PREFIX),g" $< >$@
@@ -25,7 +25,7 @@ install: all
2525
install -Dm 644 xmirror.1 -t $(DESTDIR)$(PREFIX)/share/man/man1
2626

2727
clean:
28-
rm -rf xmirror _site completions/_xmirror
28+
rm -rf xmirror _site completions/_xmirror completions/xmirror.fish
2929

3030
README: xmirror.1
3131
mandoc -Tutf8 $< | col -bx >$@
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
complete -c xmirror -f
22

33
function __xmirror_complete_mirrors
4-
string match -vr '^\s*#' </usr/share/xmirror/mirrors.lst | while read -l line
4+
string match -vr '^\s*#' <@@PREFIX@@/share/xmirror/mirrors.lst | while read -l line
55
set -l values (string split \t -- $line)
66
# Mirror url, location, and tier
77
echo -- $values[2]\t$values[3], Tier $values[4]

0 commit comments

Comments
 (0)