From 74cd5edbf43ee601ee81c691eb82365279c9d164 Mon Sep 17 00:00:00 2001 From: Laurent Goussard Date: Thu, 6 Feb 2014 15:22:51 +0100 Subject: [PATCH] [Add] Glances completion --- src/_glances | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/_glances diff --git a/src/_glances b/src/_glances new file mode 100644 index 0000000..3f4beb2 --- /dev/null +++ b/src/_glances @@ -0,0 +1,46 @@ +#compdef glances +# ------------------------------------------------------------------------------ +# Description +# ----------- +# +# Completion script for glances (http://nicolargo.github.com/glances/). +# +# ------------------------------------------------------------------------------ +# Authors +# ------- +# +# * loranger (https://github.com/loranger) +# +# ------------------------------------------------------------------------------ + +_glances() { + + _arguments \ + "-b[Display network rate in Byte per second]" \ + "-B[Bind server to the given IP or host NAME]:host:_hosts" \ + "-c[Connect to a Glances server]:host:_hosts" \ + "-C[Path to the configuration file]:configuration path:_files -/" \ + "-d[Disable disk I/O module]" \ + "-e[Enable the sensors module (Linux-only)]" \ + "-f[Set the output folder (HTML) or file (CSV)]:output path:_files -/" \ + "-h[Display the syntax and exit]" \ + "-m[Disable mount module]" \ + "-n[Disable network module]" \ + "-o[Define additional output (available: HTML or CSV)]:output type:(HTML CSV)" \ + "-p[Define the client or server TCP port (default: 61209)]:port:_ports" \ + "-P[Client/server password]:password:" \ + "-s[Run Glances in server mode]" \ + "-t[Set the refresh time in seconds (default: 3)]:seconds:" \ + "-v[Display the version and exit]" \ + "-z[Do not use the bold color attribute]" \ +} + +_glances "$@" + +# Local Variables: +# mode: Shell-Script +# sh-indentation: 2 +# indent-tabs-mode: nil +# sh-basic-offset: 2 +# End: +# vim: ft=zsh sw=2 ts=2 et \ No newline at end of file