From c249fd112ce33aa2dd475810cb4bece47ce7080d 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/.gitignore | 1 + contrib/bash_completion.d/Makefile.am | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/contrib/bash_completion.d/.gitignore b/contrib/bash_completion.d/.gitignore index 0fd9cc63af2a..217893a6bd89 100644 --- a/contrib/bash_completion.d/.gitignore +++ b/contrib/bash_completion.d/.gitignore @@ -1 +1,2 @@ /zfs +/zpool 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 $@