From 733afdab6e17e6755303dd2a51587881d43b2dd1 Mon Sep 17 00:00:00 2001 From: Shengqi Chen Date: Mon, 22 Jul 2024 15:47:38 +0800 Subject: [PATCH] contrib: link zpool to zfs in bash-completion 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 --- contrib/bash_completion.d/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/bash_completion.d/Makefile.am b/contrib/bash_completion.d/Makefile.am index 1ec05ed73d2d..5390a77a397a 100644 --- a/contrib/bash_completion.d/Makefile.am +++ b/contrib/bash_completion.d/Makefile.am @@ -1,5 +1,9 @@ nodist_bashcompletion_DATA = %D%/zfs +dist_bashcompletion_DATA = %D%/zpool SUBSTFILES += $(nodist_bashcompletion_DATA) SHELLCHECKSCRIPTS += $(nodist_bashcompletion_DATA) $(call SHELLCHECK_OPTS,$(nodist_bashcompletion_DATA)): SHELLCHECK_SHELL = bash + +%D%/zpool: %D%/zfs + $(LN_S) zfs $@