Skip to content

Commit

Permalink
contrib: link zpool to zfs in bash-completion
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Harry-Chen committed Jul 22, 2024
1 parent aea42e1 commit c249fd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/bash_completion.d/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/zfs
/zpool
4 changes: 4 additions & 0 deletions contrib/bash_completion.d/Makefile.am
Original file line number Diff line number Diff line change
@@ -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 $@

0 comments on commit c249fd1

Please sign in to comment.