a2243b71633da3f70b26dc58e9e76ccf0771674f blob 1113 bytes (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| | #autoload
_capability_names() {
# Stores an array of Linux task capability names under a parameter
# named by the first argument.
if [[ $OSTYPE != linux* ]]; then
_default; return
fi
# The list of Linux capabilities is taken from include/uapi/linux/capability.h
# and subject to the following pipe filter:
# grep 'define CAP' | sed -r 's/^[[:space:]]*#define[[:space:]]+//; s/[[:space:]]+[0-9]+$//' | tr '[[:upper:]]' '[[:lower:]]'
local -a C=(
cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore
)
set -A "$1" "${(@)C}"
}
_capability_names "$@"
|
debug log:
solving a2243b716 ...
found a2243b716 in https://inbox.vuxu.org/zsh-workers/20210226075558.883716-1-ar@cs.msu.ru/
applying [1/1] https://inbox.vuxu.org/zsh-workers/20210226075558.883716-1-ar@cs.msu.ru/
diff --git a/Completion/Linux/Type/_capability_names b/Completion/Linux/Type/_capability_names
new file mode 100644
index 000000000..a2243b716
Checking patch Completion/Linux/Type/_capability_names...
Applied patch Completion/Linux/Type/_capability_names cleanly.
index at:
100644 a2243b71633da3f70b26dc58e9e76ccf0771674f Completion/Linux/Type/_capability_names
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).