Skip to content

Instantly share code, notes, and snippets.

@perryism
Created March 29, 2018 16:34
Show Gist options
  • Select an option

  • Save perryism/75cf03242e79559f755297d9ae28977b to your computer and use it in GitHub Desktop.

Select an option

Save perryism/75cf03242e79559f755297d9ae28977b to your computer and use it in GitHub Desktop.
Hiding user input on terminal when typing password to unlock keychain
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