Skip to content

Commit

Permalink
30314: add completion for ssh-copy-id.
Browse files Browse the repository at this point in the history
  • Loading branch information
Clint Adams committed Mar 5, 2012
1 parent 86f8e8d commit 50a3065
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 7 additions & 2 deletions ChangeLog
@@ -1,3 +1,8 @@
2012-03-05 Clint Adams <clint@zsh.org>

* 30314: Completion/Unix/Command/_ssh: add completion for
ssh-copy-id.

2012-03-05 Peter Stephenson <pws@csr.com> 2012-03-05 Peter Stephenson <pws@csr.com>


* 30307 plus change suggested by Wayne in 30309: configure.ac, * 30307 plus change suggested by Wayne in 30309: configure.ac,
Expand Down Expand Up @@ -29,7 +34,7 @@
reasonable output file name when the DISPLAY variable refers to a reasonable output file name when the DISPLAY variable refers to a
local socket file (MacOS); fix problem with writing the output local socket file (MacOS); fix problem with writing the output
file when the user overrides the default value of TERM. file when the user overrides the default value of TERM.

2012-02-29 Mikael Magnusson <mikachu@gmail.com> 2012-02-29 Mikael Magnusson <mikachu@gmail.com>


* 30276: Src/glob.c: Use zlong rather than int when calculating * 30276: Src/glob.c: Use zlong rather than int when calculating
Expand Down Expand Up @@ -16062,5 +16067,5 @@


***************************************************** *****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL * This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5601 $ * $Revision: 1.5602 $
***************************************************** *****************************************************
7 changes: 6 additions & 1 deletion Completion/Unix/Command/_ssh
@@ -1,4 +1,4 @@
#compdef ssh slogin=ssh scp ssh-add ssh-agent ssh-keygen sftp #compdef ssh slogin=ssh scp ssh-add ssh-agent ssh-keygen sftp ssh-copy-id


# Completions currently based on OpenSSH 5.9 (released on 2011-09-06). # Completions currently based on OpenSSH 5.9 (released on 2011-09-06).
# #
Expand Down Expand Up @@ -133,6 +133,11 @@ _ssh () {
'-s[SSH2 subsystem or path to sftp server on the remote host]' \ '-s[SSH2 subsystem or path to sftp server on the remote host]' \
'1:file:->rfile' '*:file:->file' "$common[@]" "$common_transfer[@]" && ret=0 '1:file:->rfile' '*:file:->file' "$common[@]" "$common_transfer[@]" && ret=0
;; ;;
(ssh-copy-id)
_arguments \
'-i:SSH identity file:_files' \
':remote host name:->userhost' \
;;
esac esac


while [[ -n "$state" ]]; do while [[ -n "$state" ]]; do
Expand Down

0 comments on commit 50a3065

Please sign in to comment.