From ac7d98b84f7a5fdfd98df1ffd43da3e5ef110fcf Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Thu, 9 Aug 2012 14:15:40 +0000 Subject: Rename bash completion file from nova to cinder. Change-Id: I4bcdb482149271253e12f43fb85a663b5c938a14 --- tools/cinder.bash_completion | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tools/cinder.bash_completion (limited to 'tools/cinder.bash_completion') diff --git a/tools/cinder.bash_completion b/tools/cinder.bash_completion new file mode 100644 index 0000000..060bf1f --- /dev/null +++ b/tools/cinder.bash_completion @@ -0,0 +1,15 @@ +_cinder() +{ + local cur prev opts + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + + opts="$(cinder bash_completion)" + + COMPLETION_CACHE=~/.cinderclient/*/*-cache + opts+=" "$(cat $COMPLETION_CACHE 2> /dev/null | tr '\n' ' ') + + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) +} +complete -F _cinder cinder -- cgit v1.2.1