diff options
author | W. Trevor King <wking@tremily.us> | 2012-09-03 08:08:20 -0400 |
---|---|---|
committer | W. Trevor King <wking@tremily.us> | 2012-09-03 08:08:20 -0400 |
commit | e63a74393b376753a298231b7917faff97a38704 (patch) | |
tree | a826ace8617a544b59921283a4463032609fc865 /misc | |
parent | 912713f143bc87eb98596ace3ba59e7986c59b26 (diff) | |
download | bugseverywhere-e63a74393b376753a298231b7917faff97a38704.tar.gz |
misc:completion:be.bash: use tabs to indent shell script.
Diffstat (limited to 'misc')
-rwxr-xr-x[-rw-r--r--] | misc/completion/be.bash | 36 |
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 |