Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: update tracepath completion
- X-seq: zsh-workers 41617
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: update tracepath completion
- Date: Tue, 29 Aug 2017 00:29:53 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1503959394; bh=vwhnqOD6oygU0i7oR2DLr3Ms5BxQSv+BobwJgOgMs1Y=; h=From:To:Subject:Date:From:Subject; b=iN59r+bKhb/fDrwRNLBq8B7wLV8ARnlszhOI205nCFRHu+zSMzlxnnIZLfJGJZTaJvPetW6g49nOHMJXkvtrMzKHLNC8ys8KxiHX8/WWxLsYe/46N6NiX7SAycdp3Y6A7nO2wL8Kognbq6xf1zXTqhllSfsT+mgMdMKl04Y5pBLluBBo6uYAyUKhrvZYBB7iQEIZ50FMhlCHeBwAWxqp1Uk1uTfNYboT6hSEanKGMvqT2habDV0/b27iay6XGIOqP3N4llrqV+KRs9ofcSTy2P3jW6BpTRDhrK2O3TegDXO7XadEi3d5jXAPm6ZNzECnT7SycpoqQDnITkeaVlgO9w==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
tracepath now takes a few options. It is also actually Linux specific so
I'll also move the function from the Unix directory to Linux.
Oliver
diff --git a/Completion/Unix/Command/_tracepath b/Completion/Unix/Command/_tracepath
index eb49e567d..f0f777d96 100644
--- a/Completion/Unix/Command/_tracepath
+++ b/Completion/Unix/Command/_tracepath
@@ -1,5 +1,9 @@
#compdef tracepath tracepath6
-_arguments \
- ':destination:_hosts' \
- ':port:_ports'
+_arguments -s -S \
+ '-n[print IP addresses numerically]' \
+ '-b[print both host names and IP addresses]' \
+ '-l+[set the initial packet length]:length (bytes)' \
+ '-m+[set maximum hops]:maximum [30]' \
+ '-p+[set initial destination port to use]:port:_ports' \
+ ':destination:_hosts'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author