diff options
| author | Oliver Kiddle <opk@zsh.org> | 2016-07-08 23:09:18 +0200 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2016-07-08 23:10:41 +0200 |
| commit | 304aa25184f927ccc034bb98f6ac744d29006bb4 (patch) | |
| tree | df1810ccaf5e223913493bce2e2e3528a3667820 /Completion/Unix/Command/_dmesg | |
| parent | 38810: fix cursor positioning and repeated invocations when widgets used from... (diff) | |
| download | zsh-304aa25184f927ccc034bb98f6ac744d29006bb4.tar zsh-304aa25184f927ccc034bb98f6ac744d29006bb4.tar.gz zsh-304aa25184f927ccc034bb98f6ac744d29006bb4.tar.bz2 zsh-304aa25184f927ccc034bb98f6ac744d29006bb4.tar.lz zsh-304aa25184f927ccc034bb98f6ac744d29006bb4.tar.xz zsh-304aa25184f927ccc034bb98f6ac744d29006bb4.tar.zst zsh-304aa25184f927ccc034bb98f6ac744d29006bb4.zip | |
38812: a few new completions and update some command options
Diffstat (limited to 'Completion/Unix/Command/_dmesg')
| -rw-r--r-- | Completion/Unix/Command/_dmesg | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_dmesg b/Completion/Unix/Command/_dmesg new file mode 100644 index 000000000..3dd059214 --- /dev/null +++ b/Completion/Unix/Command/_dmesg @@ -0,0 +1,32 @@ +#compdef dmesg + +local args + +case $OSTYPE in + linux*) args=( -S -- ) ;; + darwin*|dragonfly*|*bsd*) + args=( + '-M[extract values from core]:core file:_files' + '-N[extract name list from kernel image]:system:_files' + ) + ;| + dragonfly*|freebsd*) + args=( + '-a[show all data, including syslog and console]' + '-c[clear the buffer after printing]' + ) + ;| + openbsd*) + args+=( + '-s[show console message buffer instead]' + ) + ;; + dragonfly*) + args+=( + '\*-f[follow buffer, displaying new data as it arrives]' + '-n[use specified kernel core]:number' + ) + ;; +esac + +_arguments -s $args |
