aboutsummaryrefslogtreecommitdiff
path: root/src/etc
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-03-10 22:05:48 -0400
committerB Stack <bgstack15@gmail.com>2020-03-10 22:05:48 -0400
commite59268441a9f46f806e74c9bc8ddc9a0b224c60d (patch)
tree15cfc2f066261d4fa9e222995646ec4af2271031 /src/etc
parentWIP: add lm-helper (diff)
downloadlogout-manager-e59268441a9f46f806e74c9bc8ddc9a0b224c60d.tar.gz
logout-manager-e59268441a9f46f806e74c9bc8ddc9a0b224c60d.tar.bz2
logout-manager-e59268441a9f46f806e74c9bc8ddc9a0b224c60d.zip
add DRYRUN and bash_completion to lm-helper
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/bash_completion.d/logout-manager12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/etc/bash_completion.d/logout-manager b/src/etc/bash_completion.d/logout-manager
new file mode 100644
index 0000000..fd1267f
--- /dev/null
+++ b/src/etc/bash_completion.d/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