Merge pull request #2565 from gianrubio/fix-completion-command

review completion command
This commit is contained in:
Chris Love 2017-05-15 09:59:08 -06:00 committed by GitHub
commit 12e4305998
2 changed files with 9 additions and 17 deletions

View File

@ -75,18 +75,14 @@ var (
source $(brew --prefix)/etc/bash_completion
# Bash completion support
printf "
source $(brew --prefix)/etc/bash_completion
" >> $HOME/.bash_profile
source $HOME/.bash_profile
source <(kops completion bash)
kops completion bash > ~/.kops/completion.bash.inc
printf "
printf "source $(brew --prefix)/etc/bash_completion\n" >> $HOME/.bash_profile
source $HOME/.bash_profile
source <(kops completion bash)
kops completion bash > ~/.kops/completion.bash.inc
chmod +x $HOME/.kops/completion.bash.inc
# kops shell completion
$HOME/.kops/completion.bash.inc'
" >> $HOME/.bash_profile
printf "$HOME/.kops/completion.bash.inc\n" >> $HOME/.bash_profile
source $HOME/.bash_profile
# Load the kops completion code for zsh[1] into the current shell

View File

@ -23,18 +23,14 @@ kops completion
source $(brew --prefix)/etc/bash_completion
# Bash completion support
printf "
source $(brew --prefix)/etc/bash_completion
" >> $HOME/.bash_profile
printf "source $(brew --prefix)/etc/bash_completion\n" >> $HOME/.bash_profile
source $HOME/.bash_profile
source <(kops completion bash)
kops completion bash > ~/.kops/completion.bash.inc
printf "
chmod +x $HOME/.kops/completion.bash.inc
# kops shell completion
$HOME/.kops/completion.bash.inc'
" >> $HOME/.bash_profile
printf "$HOME/.kops/completion.bash.inc\n" >> $HOME/.bash_profile
source $HOME/.bash_profile
# Load the kops completion code for zsh[1] into the current shell