Skip to content

Commit

Permalink
BOSH autocompletion expands filenames
Browse files Browse the repository at this point in the history
previously only expanded commands & options, which was
definitely a drawback when, say, creating a release

Fixed trailing space, too

Signed-off-by: Brian Cunnie <bcunnie@pivotal.io>
  • Loading branch information
dpb587-pivotal authored and Brian Cunnie committed Jan 29, 2016
1 parent 6412577 commit f625c64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bosh_cli/lib/cli/commands/shell_completion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 "#"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f625c64

Please # to comment.