Permalink
Browse files

Added new github.token !command description to README.

  • Loading branch information...
1 parent 121b26a commit 41cac82387b61d8b8bd8711cef2177089d69ef9d @jrk jrk committed with Oct 20, 2009
Showing with 8 additions and 0 deletions.
  1. +8 −0 README.markdown
View
@@ -36,6 +36,14 @@ Just have your git config set up with your GitHub username and token.
You can find your token under [your account](https://github.com/account).
+You can also define github.token to be a command which returns the
+actual token on stdout by setting the variable to a command string
+prefixed with `!`. For example, the following command fetches the
+token from a password item named "github.token" on the Mac OS
+Keychain:
+
+ token = !security 2>&1 >/dev/null find-generic-password -gs github.token | ruby -e 'print $1 if STDIN.gets =~ /^password: \\\"(.*)\\\"$/'
+
Defaults
--------

0 comments on commit 41cac82

Please sign in to comment.