Skip to content

Instantly share code, notes, and snippets.

@nickbosch
Last active November 5, 2017 23:32
Show Gist options
  • Save nickbosch/234aaf656320fce0e0110f61bd91c42f to your computer and use it in GitHub Desktop.
Save nickbosch/234aaf656320fce0e0110f61bd91c42f to your computer and use it in GitHub Desktop.
Get bibliographic details in bibtex format
# 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