From f625c64c0b0e2626aa17de363c1c1c862ee13748 Mon Sep 17 00:00:00 2001 From: Danny Berger Date: Fri, 29 Jan 2016 08:10:52 -0800 Subject: [PATCH] BOSH autocompletion expands filenames previously only expanded commands & options, which was definitely a drawback when, say, creating a release Fixed trailing space, too Signed-off-by: Brian Cunnie --- bosh_cli/lib/cli/commands/shell_completion.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bosh_cli/lib/cli/commands/shell_completion.rb b/bosh_cli/lib/cli/commands/shell_completion.rb index 2dfd1c771f9..2fa747a83b6 100644 --- a/bosh_cli/lib/cli/commands/shell_completion.rb +++ b/bosh_cli/lib/cli/commands/shell_completion.rb @@ -7,7 +7,7 @@ class ShellCompletion < Base def exec say "#" say "# Install this script in your shell to auto-complete your BOSH commands." - say "# " + say "#" say "# bash ~4.0: source <( bosh shell-completion )" say "# bash ~3.0: bosh shell-completion | source /dev/stdin" say "#" @@ -97,7 +97,7 @@ def print_footer() return 0 } -complete -F _BoshShellCompletion bo bosh -o filenames +complete -f -F _BoshShellCompletion bo bosh -o filenames EOF end end