Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[completion] Properly implement the "124 protocol" for lazy loading.
I manually tested it with osh-unit.bash and 'zz'. This could use an automated test. Remove the old, broken implementation.
- Loading branch information
Andy Chu
committed
Jan 22, 2019
1 parent
4502115
commit 6dc0f4d
Showing
3 changed files
with
50 additions
and
22 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
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,7 @@ | ||
# Testing out the "124 protocol" with a dummy 'zz' command. | ||
|
||
_zz() { | ||
COMPREPLY=(z1 z2 z3) | ||
} | ||
|
||
complete -F _zz zz |