You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
386 B

allCmds=$( hari-tools.sh list_all_commands )
_complete_hari_utils(){
saveIFS=$IFS
IFS=$'\n'
case $COMP_CWORD in
1)
COMPREPLY=( $( compgen -W "$allCmds" -- "${COMP_WORDS[COMP_CWORD]}") )
;;
*)
COMPREPLY=( $( compgen -o default -- "${COMP_WORDS[COMP_CWORD]}") )
;;
esac
IFS="$saveIFS"
return 0
}
complete -F _complete_hari_utils hari-tools.sh