Last active
November 5, 2017 23:32
-
-
Save nickbosch/234aaf656320fce0e0110f61bd91c42f to your computer and use it in GitHub Desktop.
Get bibliographic details in bibtex format
This file contains 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
# for bibtex users on Linux/macOS, add this to your ~/.bashrc or ~/.bash_profile then restart your shell | |
# usage: getbib [doi] | |
# added bonus for macOS users, use: 'getbib [doi] | pbcopy' to copy the entry straight to your clipboard. | |
# (I'm sure there's a way to do this on linux too) | |
getbib() { | |
curl -LH "Accept: application/x-bibtex" http://dx.doi.org/$1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment