-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Damien François
committed
Jan 28, 2016
1 parent
20caa7b
commit e2249e8
Showing
1 changed file
with
13 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
_eb() | ||
{ | ||
local cur prev quoted | ||
_get_comp_words_by_ref cur prev | ||
_quote_readline_by_ref "$cur" quoted | ||
|
||
case $cur in | ||
--*) _optcomplete "$@"; return 0 ;; | ||
*) COMPREPLY=( $(compgen -f -X '!*.eb' -- $cur ) \ | ||
$(compgen -W "$($1 --search-file ${cur:-eb} --terse)" -- $cur) ) ;; | ||
esac | ||
} | ||
complete -F _eb eb |