This commit is contained in:
Masataro Asai 2016-01-11 14:39:56 +09:00
parent 9aead0ae3e
commit 64ec528677

View file

@ -39,6 +39,9 @@ _ros()
COMPREPLY=( $(compgen -A file -o filenames -- ${cur}) ) ;;
install|config|help|use|list|dump|delete)
# espects these commands output completion candidates to the stdout
# quality:
# WORKS WELL: install (impl names)
# NOT: config, help, use, list, dump, delete
COMPREPLY=( $(compgen -W "$(ros $prev 2> /dev/null)" -- ${cur}) ) ;;
*)
if [[ $cur == [+-]* ]]