summaryrefslogtreecommitdiff
path: root/ifpps.zsh
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-09-05 10:01:01 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-09-05 10:01:01 +0200
commit220e83ebb195e958e36ea7ed13c54b61d23e6558 (patch)
tree0ee17e87617a35adb11a37f9b9eaff8a05b27747 /ifpps.zsh
parent4c61d72c3784c234881a71221db23ac60ac10f2f (diff)
ifpps: zsh: add -P option
Add an entry for autocompletion support. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'ifpps.zsh')
-rw-r--r--ifpps.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/ifpps.zsh b/ifpps.zsh
index 83de153..8fb97db 100644
--- a/ifpps.zsh
+++ b/ifpps.zsh
@@ -19,6 +19,7 @@ _interfaces () {
_arguments -s -S \
"(-d --dev)"{-d,--dev}"[Device to fetch statistics for i.e., eth0]:device:_interfaces" \
"(-p --promisc)"{-p,--promisc}"[Promiscuous mode]" \
+ "(-P --percentage)"{-P,--percentage}"[Show percentage of theoretical line rate]" \
"(-t --interval)"{-t,--interval}"[Refresh time in sec (default 1 s)]:interval:_gnu_generic" \
"(-n --num-cpus)"{-n,--num-cpus}"[Number of top hitter CPUs to display in ncurses mode (default 10)]" \
"(-C --csv)"{-C,--csv}"[Output to terminal as CSV E.g. post-processing with Gnuplot et al.]" \