aboutsummaryrefslogtreecommitdiff
path: root/src/usr/share/bash-completion
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-03-11 10:45:48 -0400
committerB Stack <bgstack15@gmail.com>2020-03-11 10:45:48 -0400
commit21a2eee53ad514061b2c8d5d21ec69fec219784d (patch)
treeae6bc46355eac7d3581aacf0f69bf421d680b857 /src/usr/share/bash-completion
parentadd usage of sudo (diff)
downloadlogout-manager-21a2eee53ad514061b2c8d5d21ec69fec219784d.tar.gz
logout-manager-21a2eee53ad514061b2c8d5d21ec69fec219784d.tar.bz2
logout-manager-21a2eee53ad514061b2c8d5d21ec69fec219784d.zip
add initial debuild stuff
move bash completion to recommended one from lint improve make deplist with SEPARATOR
Diffstat (limited to 'src/usr/share/bash-completion')
-rw-r--r--src/usr/share/bash-completion/completions/logout-manager12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/usr/share/bash-completion/completions/logout-manager b/src/usr/share/bash-completion/completions/logout-manager
new file mode 100644
index 0000000..fd1267f
--- /dev/null
+++ b/src/usr/share/bash-completion/completions/logout-manager
@@ -0,0 +1,12 @@
+# File: /etc/bash_completion.d/logout-manager
+# Reference:
+# bgscripts-core: /usr/bin/bp
+# man complete
+
+_lm_helper() {
+ local cur prev words cword;
+ _init_completion || return
+ COMPREPLY=($( compgen -W "$( ~/dev/logout-manager/src/usr/libexec/logout-manager/lm-helper options )" -- "$cur" ))
+ return 0
+} && \
+complete -F _lm_helper -o bashdefault lm-helper
bgstack15