Last active
November 20, 2019 20:31
-
-
Save edthrn/e2eb53ce1a07ed596c6f439e9db329be to your computer and use it in GitHub Desktop.
Put a password stored in `1password` to clipboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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