Skip to content

Commit 733afda

Browse files
committed
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 <[email protected]>
1 parent aea42e1 commit 733afda

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contrib/bash_completion.d/Makefile.am

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
nodist_bashcompletion_DATA = %D%/zfs
2+
dist_bashcompletion_DATA = %D%/zpool
23
SUBSTFILES += $(nodist_bashcompletion_DATA)
34

45
SHELLCHECKSCRIPTS += $(nodist_bashcompletion_DATA)
56
$(call SHELLCHECK_OPTS,$(nodist_bashcompletion_DATA)): SHELLCHECK_SHELL = bash
7+
8+
%D%/zpool: %D%/zfs
9+
$(LN_S) zfs $@

0 commit comments

Comments
 (0)