contrib: link zpool to zfs in bash-completion (#16376)
Currently user won't have completion of `zpool` command until they trigger completion of `zfs` first. This patch adds a link to `zfs`, thus user can use both to initialize the completion. Fixes: #16320 Signed-off-by: Shengqi Chen <harry-chen@outlook.com> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Rob Norris <rob.norris@klarasystems.com> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
This commit is contained in:
parent
1fdcb653bc
commit
46ebd0af8a
|
@ -1 +1,2 @@
|
|||
/zfs
|
||||
/zpool
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
nodist_bashcompletion_DATA = %D%/zfs
|
||||
SUBSTFILES += $(nodist_bashcompletion_DATA)
|
||||
nodist_bashcompletion_DATA = %D%/zfs %D%/zpool
|
||||
COMPLETION_FILES = %D%/zfs
|
||||
SUBSTFILES += $(COMPLETION_FILES)
|
||||
|
||||
SHELLCHECKSCRIPTS += $(nodist_bashcompletion_DATA)
|
||||
$(call SHELLCHECK_OPTS,$(nodist_bashcompletion_DATA)): SHELLCHECK_SHELL = bash
|
||||
SHELLCHECKSCRIPTS += $(COMPLETION_FILES)
|
||||
$(call SHELLCHECK_OPTS,$(COMPLETION_FILES)): SHELLCHECK_SHELL = bash
|
||||
|
||||
%D%/zpool: %D%/zfs
|
||||
$(LN_S) zfs $@
|
||||
|
|
|
@ -532,6 +532,7 @@ systemctl --system daemon-reload >/dev/null || true
|
|||
%attr(440, root, root) %config(noreplace) %{_sysconfdir}/sudoers.d/*
|
||||
|
||||
%config(noreplace) %{_bashcompletiondir}/zfs
|
||||
%config(noreplace) %{_bashcompletiondir}/zpool
|
||||
|
||||
%files -n libzpool5
|
||||
%{_libdir}/libzpool.so.*
|
||||
|
|
Loading…
Reference in New Issue