-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pip{,3}): add fallback 3rd-party completion loader
- Loading branch information
1 parent
f1c085c
commit e3cbfba
Showing
5 changed files
with
16 additions
and
0 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 |
---|---|---|
|
@@ -211,6 +211,7 @@ | |
/pinfo | ||
/ping4 | ||
/ping6 | ||
/_pip3 | ||
/pkg_deinstall | ||
/pkg_info | ||
/pkgconf | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# 3rd party completion loader for commands emitting -*- shell-script -*- | ||
# their completion using "$cmd completion --bash". For example, pip uses this | ||
# form of dynamic completions. | ||
# | ||
# This serves as a fallback in case the completion is not installed otherwise. | ||
|
||
eval -- "$("$1" completion --bash 2>/dev/null)" | ||
|
||
# ex: filetype=sh |
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 |
---|---|---|
|
@@ -24,6 +24,7 @@ EXTRA_DIST = \ | |
newgrp \ | ||
nmcli \ | ||
nox \ | ||
pip \ | ||
pipenv \ | ||
renice \ | ||
repomanage \ | ||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../completions/_pip |