Skip to content

Commit 90bacf1

Browse files
committed
feat(7z): complete 7zr and 7zz
p7zip provides [7zr(1)] in addition to [7za(1)] and [7z(1)]. 7zr behaves like 7z with the exception that it only supports the 7z, LZMA, and XZ formats. Since [7-Zip 21.01 alpha], the 7-Zip project provides a command-line version of 7-Zip for Linux, [7zz(1)]. It shares nearly all of the command-line options and syntax of the p7zip port. Apply the current completions for 7z to 7zr and 7zz. Note that there are a few minor differences (e.g. 7zz does not support `-mh*` or `-ms*`) which will need to be addressed by subsequent work. [7-Zip 21.01 alpha]: https://sourceforge.net/p/sevenzip/discussion/45797/thread/d401ab2966/ [7z(1)]: https://github.com/jinfeihan57/p7zip/blob/v17.04/man1/7z.1 [7za(1)]: https://github.com/jinfeihan57/p7zip/blob/v17.04/man1/7za.1 [7zr(1)]: https://github.com/jinfeihan57/p7zip/blob/v17.04/man1/7zr.1 [7zz(1)]: https://manpages.debian.org/testing/7zip/7zz.1.en.html Signed-off-by: Kevin Locke <[email protected]>
1 parent 730368b commit 90bacf1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

completions/7z

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,6 @@ _7z()
123123
fi
124124
fi
125125
} &&
126-
complete -F _7z 7z 7za
126+
complete -F _7z 7z 7za 7zr 7zz
127127

128128
# ex: filetype=sh

completions/Makefile.am

+5-1
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,8 @@ EXTRA_DIST = $(bashcomp_DATA)
483483

484484
CLEANFILES = \
485485
7za \
486+
7zr \
487+
7zz \
486488
aclocal-1.10 \
487489
aclocal-1.11 \
488490
aclocal-1.12 \
@@ -797,7 +799,9 @@ CLEANFILES = \
797799

798800
symlinks: $(DATA)
799801
$(ss) 7z \
800-
7za
802+
7za \
803+
7zr \
804+
7zz
801805
$(ss) aclocal \
802806
aclocal-1.10 aclocal-1.11 aclocal-1.12 aclocal-1.13 \
803807
aclocal-1.14 aclocal-1.15 aclocal-1.16

0 commit comments

Comments
 (0)