summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_pmap
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2025-09-01 11:11:01 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2025-09-01 11:11:01 +0900
commitdff057259dea8e5c7c10986fec90905c93f2ac59 (patch)
tree64315c94a23ef715e3a1dc17119e5d6a4f1c9eb8 /Completion/Unix/Command/_pmap
parent53866: fix _man for NetBSD (diff)
downloadzsh-dff057259dea8e5c7c10986fec90905c93f2ac59.tar
zsh-dff057259dea8e5c7c10986fec90905c93f2ac59.tar.gz
zsh-dff057259dea8e5c7c10986fec90905c93f2ac59.tar.bz2
zsh-dff057259dea8e5c7c10986fec90905c93f2ac59.tar.lz
zsh-dff057259dea8e5c7c10986fec90905c93f2ac59.tar.xz
zsh-dff057259dea8e5c7c10986fec90905c93f2ac59.tar.zst
zsh-dff057259dea8e5c7c10986fec90905c93f2ac59.zip
53898: update _pmap, _date, _pgrep, _sysctl
_pmap is moved from Linux/Command/ to Unix/Command
Diffstat (limited to 'Completion/Unix/Command/_pmap')
-rw-r--r--Completion/Unix/Command/_pmap44
1 files changed, 44 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_pmap b/Completion/Unix/Command/_pmap
new file mode 100644
index 000000000..5fd92ab9e
--- /dev/null
+++ b/Completion/Unix/Command/_pmap
@@ -0,0 +1,44 @@
+#compdef pmap
+
+if _pick_variant procps=procps-ng unix -V 2>/dev/null; then
+ # based on procps-ng-3.3.15
+ _arguments -s \
+ '(exit -A --range)'{-A+,--range}'[limit results to the specified address range]:low,high: ' \
+ '(exit -q --quiet)'{-q,--quiet}'[do not display some header or footer lines]' \
+ '(exit -p --show-path)'{-p,--show-path}'[show full path to files in the mapping column]' \
+ '(exit)*: :_pids' \
+ + '(format)' \
+ '(exit)'{-d,--device}'[show the device format]' \
+ '(exit)'{-x,--extended}'[show the extended format]' \
+ '(exit)-X[show even more details than -x option]' \
+ '(exit)-XX[show everything the kernel provides]' \
+ '(exit)'{-c,--read-rc}'[read the default configuration]' \
+ '(exit)'{-C+,--read-rc-from=}'[read the configuration from the specified file]: :_files' \
+ + '(exit)' \
+ '(- *)'{-n,--create-rc}'[create new default configuration and exit]' \
+ '(- *)'{-N+,--create-rc-to=}'[create new configuration to the specified file and exit]: :_files' \
+ '(- *)'{-h,--help}'[display help text and exit]' \
+ '(- *)'{-V,--version}'[display version information and exit]'
+elif [[ $OSTYPE = netbsd* ]]; then
+ _arguments -s \
+ '(-E -S -V)-A[dump vm_amap structure found at the specified address]:address:' \
+ "-a[display all information from the process's memory map]" \
+ '-D[enable version debug facilities]:bitmask:' \
+ '-d[dump vm_map and vm_map_entry in a style like ddb(4)]' \
+ '(-A -S -V)-E[dump vm_map_entry structure found at the specified address]:address:' \
+ '-l[dump information in a format like Linux /proc file system]' \
+ '(-N)-M[extract values associated with the name list from the specified core]:core:' \
+ '-m[dump information in the same format as the map pseudo-file in /proc]' \
+ '(-M)-N[extract the name list from the specified system]:system:' \
+ '(-p)-P[print information about pmap itself]' \
+ '(-P)-p[print information about the specified process]: :_pids' \
+ '-R[recurse into submaps]' \
+ '(-A -E -V)-S[dump vmspace structure found at the specified address]:address:' \
+ '-s[Solaris style output format (default)]' \
+ '-t[print entries to the underlying RB tree]' \
+ '(-A -E -S)-V[dump vm_map structure found at the specified address]:address:' \
+ '-v[verbose output]' \
+ '*:pid:_pids'
+else
+ _default
+fi