diff options
author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2023-09-04 15:07:52 +0900 |
---|---|---|
committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2023-09-04 15:07:52 +0900 |
commit | c0caef561323b91ea0c4aa101b564f92ab51b68d (patch) | |
tree | 5caa79c3bfb53add8f14e49333b456f76bdeded3 /Completion/Unix/Command/_mosh | |
parent | 9ff1b2810e70658b2364b737478e9a996de0a644 (diff) | |
download | zsh-c0caef561323b91ea0c4aa101b564f92ab51b68d.tar.gz zsh-c0caef561323b91ea0c4aa101b564f92ab51b68d.tar.xz zsh-c0caef561323b91ea0c4aa101b564f92ab51b68d.zip |
52112: use '_normal -p subcmd' to complete only external command
Diffstat (limited to 'Completion/Unix/Command/_mosh')
-rw-r--r-- | Completion/Unix/Command/_mosh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_mosh b/Completion/Unix/Command/_mosh index 7d1250320..6d0f746f8 100644 --- a/Completion/Unix/Command/_mosh +++ b/Completion/Unix/Command/_mosh @@ -7,7 +7,7 @@ _arguments -C \ '(-)--help[display help information]' \ '(-)--version[display version information]' \ "--no-init[don't set terminal init string]" \ - '--ssh=[specify ssh command to setup session]:ssh command:_normal' \ + '--ssh=[specify ssh command to setup session]:ssh command: _cmdstring' \ '--port=[specify server-side port range]:port:_sequence -n 2 -s \: _ports' \ '(-a -n)--predict=[control speculative local echo]:mode:(adaptive always never)' \ '(--predict -n)-a[synonym for --predict=always]' \ @@ -22,7 +22,7 @@ _arguments -C \ '--local[run mosh-server locally without using ssh]' \ '--experimental-remote-ip=[select method for discovering remote IP address to use for mosh]:method:(local remote proxy)' \ '1:remote host name:->userhost' \ - '*:::args:_normal' && ret=0 + '*::: : _normal -p $service' && ret=0 case $state in userhost) |