1
0
mirror of https://git.envs.net/envs/burrow.git synced 2024-06-17 22:57:06 +00:00
burrow/burrow.d
2018-01-20 15:20:25 -05:00

15 lines
313 B
Bash

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