dotfiles

Clean dotfiles
git clone git://git.dimitrijedobrota.com/dotfiles.git
Log | Files | Refs

pass-otp (765B)


      1 PASSWORD_STORE_EXTENSION_COMMANDS+=(otp)
      2 
      3 __password_store_extension_complete_otp() {
      4   if [[ $COMP_CWORD -gt 2 ]]; then
      5     case "${COMP_WORDS[2]}" in
      6       insert|append)
      7         COMPREPLY+=($(compgen -W "-e --echo -f --force -s --secret -i --issuer -a --account" -- ${cur}))
      8         _pass_complete_entries
      9         ;;
     10       uri)
     11         COMPREPLY+=($(compgen -W "-c --clip -q --qrcode" -- ${cur}))
     12         _pass_complete_entries
     13         ;;
     14       validate)
     15         _pass_complete_entries
     16         ;;
     17       *)
     18         COMPREPLY+=($(compgen -W "-h --help" -- ${cur}))
     19         _pass_complete_entries
     20         ;;
     21     esac
     22   else
     23       COMPREPLY+=($(compgen -W "insert append uri validate -h --help -c --clip -q --quiet" -- ${cur}))
     24       _pass_complete_entries 1
     25   fi
     26 }