]> git.hoellein.online Git - zenbook/commitdiff
saving uncommitted changes in /etc prior to apt run
authorMario Höllein <mhoellein@freenet.de>
Tue, 6 Nov 2018 09:43:51 +0000 (10:43 +0100)
committerMario Höllein <mhoellein@freenet.de>
Tue, 6 Nov 2018 09:43:51 +0000 (10:43 +0100)
.etckeeper
bash_completion.d/pass-otp [new file with mode: 0644]

index ee8986b5a42554bbd6cc22e22a825f580094e7be..0d80045999e2e968f40257889e2ced739ee4f7e9 100755 (executable)
@@ -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 (file)
index 0000000..5b13dcc
--- /dev/null
@@ -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
+}