diff options
| author | Laurent Goussard <loranger@free.fr> | 2014-02-06 15:22:51 +0100 |
|---|---|---|
| committer | Laurent Goussard <loranger@free.fr> | 2014-02-06 15:22:51 +0100 |
| commit | 74cd5edbf43ee601ee81c691eb82365279c9d164 (patch) | |
| tree | 2414986d7660df6acbb8cd606aaf5e11caf1e2ab /src/_glances | |
| parent | [Add] Enable composer completions (diff) | |
| download | zsh-completions-74cd5edbf43ee601ee81c691eb82365279c9d164.tar zsh-completions-74cd5edbf43ee601ee81c691eb82365279c9d164.tar.gz zsh-completions-74cd5edbf43ee601ee81c691eb82365279c9d164.tar.bz2 zsh-completions-74cd5edbf43ee601ee81c691eb82365279c9d164.tar.lz zsh-completions-74cd5edbf43ee601ee81c691eb82365279c9d164.tar.xz zsh-completions-74cd5edbf43ee601ee81c691eb82365279c9d164.tar.zst zsh-completions-74cd5edbf43ee601ee81c691eb82365279c9d164.zip | |
[Add] Glances completion
Diffstat (limited to 'src/_glances')
| -rw-r--r-- | src/_glances | 46 |
1 files changed, 46 insertions, 0 deletions
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 |
