-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
1 parent
aea42e1
commit 633def7
Showing
3 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/zfs | ||
/zpool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters