aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]misc/completion/be.bash36
1 files changed, 18 insertions, 18 deletions
diff --git a/misc/completion/be.bash b/misc/completion/be.bash
index 1d3a941..853ec31 100644..100755
--- a/misc/completion/be.bash
+++ b/misc/completion/be.bash
@@ -16,24 +16,24 @@
# to print a list of available completions at that point
_be()
{
- local cur prev opts
- COMPREPLY=()
- cur="${COMP_WORDS[COMP_CWORD]}"
- prev="${COMP_WORDS[COMP_CWORD-1]}"
-
- if [ $COMP_CWORD -eq 1 ]; then
- # no command yet, show all commands
- COMPREPLY=( $( compgen -W "$(be --complete)" -- $cur ) )
- else
- # remove the first word (should be "be") for security reasons
- unset COMP_WORDS[0]
- # remove the current word and all later words, because they
- # are not needed for completion.
- for i in `seq $COMP_CWORD ${#COMP_WORDS[@]}`; do
- unset COMP_WORDS[$i];
- done
- COMPREPLY=( $( IFS=$'\n' compgen -W "$(be "${COMP_WORDS[@]}" --complete $cur)" -- $cur ) )
- fi
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+
+ if [ $COMP_CWORD -eq 1 ]; then
+ # no command yet, show all commands
+ COMPREPLY=( $( compgen -W "$(be --complete)" -- $cur ) )
+ else
+ # remove the first word (should be "be") for security reasons
+ unset COMP_WORDS[0]
+ # remove the current word and all later words, because they
+ # are not needed for completion.
+ for i in `seq $COMP_CWORD ${#COMP_WORDS[@]}`; do
+ unset COMP_WORDS[$i];
+ done
+ COMPREPLY=( $( IFS=$'\n' compgen -W "$(be "${COMP_WORDS[@]}" --complete $cur)" -- $cur ) )
+ fi
}
complete -F _be be