From: Mario Höllein Date: Tue, 6 Nov 2018 09:43:51 +0000 (+0100) Subject: saving uncommitted changes in /etc prior to apt run X-Git-Url: https://git.hoellein.online/?a=commitdiff_plain;h=8f31f61392639a763e84842dfb0fcccbfe77898e;p=zenbook saving uncommitted changes in /etc prior to apt run --- diff --git a/.etckeeper b/.etckeeper index ee8986b..0d80045 100755 --- a/.etckeeper +++ b/.etckeeper @@ -585,6 +585,7 @@ maybe chmod 0644 'bash_completion.d/grub' maybe chmod 0644 'bash_completion.d/insserv' maybe chmod 0644 'bash_completion.d/libreoffice.sh' maybe chmod 0644 'bash_completion.d/openvpn' +maybe chmod 0644 'bash_completion.d/pass-otp' maybe chmod 0644 'bindresvport.blacklist' maybe chmod 0755 'binfmt.d' maybe chmod 0755 'bitcoin' diff --git a/bash_completion.d/pass-otp b/bash_completion.d/pass-otp new file mode 100644 index 0000000..5b13dcc --- /dev/null +++ b/bash_completion.d/pass-otp @@ -0,0 +1,26 @@ +PASSWORD_STORE_EXTENSION_COMMANDS+=(otp) + +__password_store_extension_complete_otp() { + if [[ $COMP_CWORD -gt 2 ]]; then + case "${COMP_WORDS[2]}" in + insert|append) + COMPREPLY+=($(compgen -W "-e --echo -f --force -s --secret -i --issuer -a --account" -- ${cur})) + _pass_complete_entries + ;; + uri) + COMPREPLY+=($(compgen -W "-c --clip -q --qrcode" -- ${cur})) + _pass_complete_entries + ;; + validate) + _pass_complete_entries + ;; + *) + COMPREPLY+=($(compgen -W "-h --help" -- ${cur})) + _pass_complete_entries + ;; + esac + else + COMPREPLY+=($(compgen -W "insert append uri validate -h --help -c --clip" -- ${cur})) + _pass_complete_entries 1 + fi +}