From e59268441a9f46f806e74c9bc8ddc9a0b224c60d Mon Sep 17 00:00:00 2001 From: B Stack Date: Tue, 10 Mar 2020 22:05:48 -0400 Subject: add DRYRUN and bash_completion to lm-helper --- src/etc/bash_completion.d/logout-manager | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/etc/bash_completion.d/logout-manager (limited to 'src/etc') 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 -- cgit