Skip to content

Instantly share code, notes, and snippets.

@edthrn
Last active November 20, 2019 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edthrn/e2eb53ce1a07ed596c6f439e9db329be to your computer and use it in GitHub Desktop.
Save edthrn/e2eb53ce1a07ed596c6f439e9db329be to your computer and use it in GitHub Desktop.
Put a password stored in `1password` to clipboard
# Usage: ./pw.sh Github.com
op get item $1 | jq -r '.details.fields[] | select(.designation=="password").value' | xclip -selection c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment