Skip to content

Instantly share code, notes, and snippets.

@adamamyl
Created January 10, 2018 15:51
Show Gist options
  • Save adamamyl/a90619fac110b924005a5a0579b64ec3 to your computer and use it in GitHub Desktop.
Save adamamyl/a90619fac110b924005a5a0579b64ec3 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# keychain-search:
set -e
if [ -z $1 ]; then
echo "Specify thing to look for as argument"
echo "Maybe you want one of:
adam-stage-play adam-beta-play adam-play
adam-stage-playlive adam-beta-playlive adam-playlive
examplebank-stage-play examplebank-beta-play examplebank-play
payrnet-stage-playlive payrnet-beta-playlive payrnet-playlive
"
exit 17
fi
security find-generic-password -a ${USER} -w -s ${1}
# vim:tabstop=4:expandtab:shiftwidth=4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment