aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2012-09-03 08:08:20 -0400
committerW. Trevor King <wking@tremily.us>2012-09-03 08:08:20 -0400
commite63a74393b376753a298231b7917faff97a38704 (patch)
treea826ace8617a544b59921283a4463032609fc865 /misc
parent912713f143bc87eb98596ace3ba59e7986c59b26 (diff)
downloadbugseverywhere-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.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