2018-01-20 20:20:25 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-01-20 20:02:34 +00:00
|
|
|
_burrow()
|
|
|
|
{
|
2018-01-20 20:20:25 +00:00
|
|
|
# Get basic autocomplete commands from the function itself
|
|
|
|
local helplist
|
|
|
|
helplist=$(burrow shortlist)
|
2018-01-20 20:02:34 +00:00
|
|
|
|
2018-01-20 20:20:25 +00:00
|
|
|
# Combine all the lists for autocomplete
|
|
|
|
local cur
|
|
|
|
cur=${COMP_WORDS[COMP_CWORD]}
|
|
|
|
COMPREPLY=( $( compgen -W "$helplist" -- "$cur" ) )
|
2018-01-20 20:02:34 +00:00
|
|
|
}
|
|
|
|
complete -F _burrow burrow
|