diff options
| author | Eisuke Kawashima <e-kwsm@users.noreply.github.com> | 2025-06-14 14:55:31 +0900 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2025-09-24 00:10:25 +0200 |
| commit | 1cb9a052dc3e0853dff24cb839ec061a7cd099bf (patch) | |
| tree | 5f0227136358f26427bf1c4071e483ed74d67274 /Completion/Unix | |
| parent | 53947: fix for broken completion of tags and paths with ansible-galaxy (diff) | |
| download | zsh-1cb9a052dc3e0853dff24cb839ec061a7cd099bf.tar zsh-1cb9a052dc3e0853dff24cb839ec061a7cd099bf.tar.gz zsh-1cb9a052dc3e0853dff24cb839ec061a7cd099bf.tar.bz2 zsh-1cb9a052dc3e0853dff24cb839ec061a7cd099bf.tar.lz zsh-1cb9a052dc3e0853dff24cb839ec061a7cd099bf.tar.xz zsh-1cb9a052dc3e0853dff24cb839ec061a7cd099bf.tar.zst zsh-1cb9a052dc3e0853dff24cb839ec061a7cd099bf.zip | |
fix and improve completion for ssh-keygen
Diffstat (limited to 'Completion/Unix')
| -rw-r--r-- | Completion/Unix/Command/_ssh | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh index d8c27c65f..d5ace867b 100644 --- a/Completion/Unix/Command/_ssh +++ b/Completion/Unix/Command/_ssh @@ -158,10 +158,11 @@ _ssh () { if (( $+words[(r)-[IhUDnV]*] )); then args=( '-z[specify serial number]:serial number' ) options=( - clear critical\:name extension\:name force-command\:command\:_cmdstring + clear 'critical\:name' 'extension\:name' 'force-command\:command\:_cmdstring' no-agent-forwarding no-port-forwarding no-pty no-user-rc no-x11-forwarding permit-agent-forwarding permit-port-forwarding permit-pty permit-user-rc - permit-x11-forwarding source-address\:source\ address + permit-x11-forwarding no-touch-required 'source-address\:source\ address' + verify-required ) fi (( $+words[(r)-[ku]] )) && args=( '-z[specify version number]:version number' ) && @@ -172,12 +173,19 @@ _ssh () { file=input args+=( '*:output file:_files' ) options=( - lines:number - 'start-line\:line number' - checkpoint\:file:_files - 'memory\:size (mbytes)' - 'start\:start point (hex-value)' - generator\:value + 'lines\:number' + 'start-line\:line-number' + 'checkpoint\:file\:_files' + 'memory\:mbytes' + 'start\:hex-value' + 'generator\:value' + ) + fi + if (( $+words[(r)-Y*] )); then + options=( + 'hashalg\:algorithm\:_values\ algorithm\ sha256\ sha512' + 'print-pubkey' + 'verify-time\:timestamp' ) fi (( $+words[(r)-A] )) && file='prefix for host key' |
