Add the completion file for AiiDA's verdi command line interface

pull/1518/head
Hongyi Zhao 2020-03-25 16:42:03 +08:00
parent 0e22b00ca3
commit 219c0d734f
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
# For AiiDA's verdi command line interface tab-completion:
# https://aiida.readthedocs.io/projects/aiida-core/en/latest/install/configuration.html#verdi-tab-completion
#eval "$(_VERDI_COMPLETE=source verdi)"
_verdi_completion() {
local IFS=$'\t'
COMPREPLY=( $( env COMP_WORDS="${COMP_WORDS[*]}" \
COMP_CWORD=$COMP_CWORD \
_VERDI_COMPLETE=complete-bash $1 ) )
return 0
}
complete -F _verdi_completion -o default verdi