Revision: 70053
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 11, 2015 09:58 by alfirth
Initial Code
get_pw () { security 2>&1 >/dev/null find-generic-password -ga $USER |ruby -e 'print $1 if STDIN.gets =~ /^password: "(.*)"$/' }
Initial URL
http://hints.macworld.com/article.php?story=20130722033452283
Initial Description
Get password from keychain (OSX)
Initial Title
Get password from keychain (OSX)
Initial Tags
osx
Initial Language
Bash