Repository URL to install this package:
|
Version:
0.2.3 ▾
|
# symlink to ~/.bash_completion.d/ssh
_zco_completion()
{
local options=(--help --version --name --role --roletype --env --timeout)
local cur=${COMP_WORDS[COMP_CWORD]}
COMPREPLY=( $(compgen -W "`echo ${options[*]}`" -- $cur))
if [ $COMP_CWORD -eq "1" ]; then
COMPREPLY=''
fi
if [ $COMP_CWORD -eq "1" ]; then
COMPREPLY=( $(compgen -W "install_autocomplete list run run_more update_autocomplete `echo ${options[*]}`" -- $cur) )
fi
}
complete -F _zco_completion zco
_ssh_completion()
{
local cur=${COMP_WORDS[COMP_CWORD]}
COMPREPLY=( $(compgen -W "echo `cat ~/.ssh/cb_hosts | tr '\n' ' '`" -- $cur) )
}
complete -F _ssh_completion ssh