chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
manager: introduce watch_init() initializer for watches
[elogind.git]
/
shell-completion
/
systemd-bash-completion.sh
diff --git
a/shell-completion/systemd-bash-completion.sh
b/shell-completion/systemd-bash-completion.sh
index 5f829b36aefd94a93cc8543befca062bc622b6e5..897f988fd9cef5669a46d1a05ee5d5425a9c7439 100644
(file)
--- a/
shell-completion/systemd-bash-completion.sh
+++ b/
shell-completion/systemd-bash-completion.sh
@@
-281,7
+281,7
@@
_loginctl () {
complete -F _loginctl loginctl
__journal_fields=(MESSAGE{,_ID} PRIORITY CODE_{FILE,LINE,FUNC}
complete -F _loginctl loginctl
__journal_fields=(MESSAGE{,_ID} PRIORITY CODE_{FILE,LINE,FUNC}
- ERRNO SYSLOG_{FACILITY,IDENTIFIER,PID}
+ ERRNO SYSLOG_{FACILITY,IDENTIFIER,PID}
COREDUMP_EXE
_{P,U,G}ID _COMM _EXE _CMDLINE
_AUDIT_{SESSION,LOGINUID}
_SYSTEMD_{CGROUP,SESSION,UNIT,OWNER_UID}
_{P,U,G}ID _COMM _EXE _CMDLINE
_AUDIT_{SESSION,LOGINUID}
_SYSTEMD_{CGROUP,SESSION,UNIT,OWNER_UID}
@@
-294,10
+294,11
@@
__journal_fields=(MESSAGE{,_ID} PRIORITY CODE_{FILE,LINE,FUNC}
_journalctl() {
local field_vals= cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
local -A OPTS=(
_journalctl() {
local field_vals= cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
local -A OPTS=(
- [STANDALONE]='-a --all -b --this-boot --disk-usage -f --follow --header
+ [STANDALONE]='-a --all --full
+ -b --this-boot --disk-usage -f --follow --header
-h --help -l --local --new-id128 -m --merge --no-pager
--no-tail -q --quiet --setup-keys --this-boot --verify
-h --help -l --local --new-id128 -m --merge --no-pager
--no-tail -q --quiet --setup-keys --this-boot --verify
- --version'
+ --version
--list-catalog --update-catalog
'
[ARG]='-D --directory -F --field -o --output -u --unit'
[ARGUNKNOWN]='-c --cursor --interval -n --lines -p --priority --since --until
--verify-key'
[ARG]='-D --directory -F --field -o --output -u --unit'
[ARGUNKNOWN]='-c --cursor --interval -n --lines -p --priority --since --until
--verify-key'
@@
-349,7
+350,7
@@
_coredumpctl() {
local -A VERBS=(
[LIST]='list'
local -A VERBS=(
[LIST]='list'
- [DUMP]='dump'
+ [DUMP]='dump
gdb
'
)
if __contains_word "$prev" '--output -o'; then
)
if __contains_word "$prev" '--output -o'; then
@@
-368,6
+369,9
@@
_coredumpctl() {
mapfile -t field_vals < <(systemd-coredumpctl -F "${prev%=}" 2>/dev/null)
COMPREPLY=( $(compgen -W '${field_vals[*]}' -- "${cur#=}") )
return 0
mapfile -t field_vals < <(systemd-coredumpctl -F "${prev%=}" 2>/dev/null)
COMPREPLY=( $(compgen -W '${field_vals[*]}' -- "${cur#=}") )
return 0
+ elif [[ $prev = '=' ]]; then
+ mapfile -t field_vals < <(systemd-coredumpctl -F "${COMP_WORDS[COMP_CWORD-2]}" 2>/dev/null)
+ comps=${field_vals[*]}
else
for ((i=0; i <= COMP_CWORD; i++)); do
if __contains_word "${COMP_WORDS[i]}" ${VERBS[*]}; then
else
for ((i=0; i <= COMP_CWORD; i++)); do
if __contains_word "${COMP_WORDS[i]}" ${VERBS[*]}; then
@@
-593,7
+597,7
@@
_udevadm() {
fi
elif __contains_word "$verb" ${VERBS[TESTBUILTIN]}; then
fi
elif __contains_word "$verb" ${VERBS[TESTBUILTIN]}; then
- comps='blkid btrfs firmware hwdb input_id kmod path_id usb_id uaccess'
+ comps='blkid btrfs firmware hwdb input_id kmod
net_id
path_id usb_id uaccess'
fi
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
fi
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )