summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2012-09-12 16:13:03 -0700
committerJohn Southworth <john.southworth@vyatta.com>2012-09-12 16:13:03 -0700
commitdc199d89219c06ff1ca73639bbe3592790a6e190 (patch)
treeb56d0f6df57490ccbbdaf3a42caccbfec3055797
parent365e1b8d95905e88c6148948074ce56f2db94084 (diff)
downloadvyatta-op-dc199d89219c06ff1ca73639bbe3592790a6e190.tar.gz
vyatta-op-dc199d89219c06ff1ca73639bbe3592790a6e190.zip
Make opmode completions show the list on blank completion like config mode now does
-rw-r--r--etc/bash_completion.d/vyatta-op3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op
index 22eea12..c59df65 100644
--- a/etc/bash_completion.d/vyatta-op
+++ b/etc/bash_completion.d/vyatta-op
@@ -456,7 +456,8 @@ _vyatta_op_expand ()
_vyatta_op_last_comp=${_vyatta_op_last_comp_init}
# if there are no completions then always show the non-comps
elif [ "${COMP_WORDS[*]:0:$[$COMP_CWORD+1]}" == "$_vyatta_op_last_comp" ] ||
- [ ${#_vyatta_op_completions[@]} -eq 0 ]; then
+ [ ${#_vyatta_op_completions[@]} -eq 0 ] ||
+ [ -z "$cur" ]; then
_vyatta_op_help "$current_prefix" \
"${_vyatta_op_noncompletions[@]}" \
"${_vyatta_op_completions[@]}" \