aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d/ssh-copy-id.bash
blob: 5e4fe99bd500606843f07ed2af39029830ed0047 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# Completion for ssh-copy-id(1) with ssh_config(5) hostnames
declare -F _ssh_config_hosts >/dev/null ||
    source "$HOME"/.bash_completion.d/_ssh_config_hosts.bash

# bashdefault requires Bash >=3.0
if ((BASH_VERSINFO[0] >= 3)) ; then
    complete -F _ssh_config_hosts -o bashdefault -o default ssh-copy-id
else
    complete -F _ssh_config_hosts -o default ssh-copy-id
fi