Created
March 29, 2018 16:34
-
-
Save perryism/75cf03242e79559f755297d9ae28977b to your computer and use it in GitHub Desktop.
Hiding user input on terminal when typing password to unlock keychain
This file contains hidden or 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
| read -s PASSWORD && security -v unlock-keychain -p $PASSWORD "/Users/plee/Library/Keychains/login.keychain-db" 2>&1 | grep -v 'unlock-keychain' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment