Skip to content

Instantly share code, notes, and snippets.

@jasonm23
Created March 21, 2026 12:24
Show Gist options
  • Select an option

  • Save jasonm23/7817db75d4a3ef20b0cd5f35a8af72b1 to your computer and use it in GitHub Desktop.

Select an option

Save jasonm23/7817db75d4a3ef20b0cd5f35a8af72b1 to your computer and use it in GitHub Desktop.
Passmenu in fuzzel
#!/bin/bash
export PASSWORD_STORE_CLIP_TIME=10
shopt -s nullglob globstar
prefix=${PASSWORD_STORE_DIR-~/.password-store}
password_files=( "$prefix"/**/*.gpg )
password_files=( "${password_files[@]#"$prefix"/}" )
password_files=( "${password_files[@]%.gpg}" )
password=$(printf '%s\n' "${password_files[@]}" | fuzzel --prompt "🔑 " --dmenu "$@")
[[ -n $password ]] || exit
pass show -c "$password" 2>/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment