Skip to content

Instantly share code, notes, and snippets.

@arrowtype
Created November 11, 2019 15:46
Show Gist options
  • Save arrowtype/2b9ea17c22355918d66df6810a5ee084 to your computer and use it in GitHub Desktop.
Save arrowtype/2b9ea17c22355918d66df6810a5ee084 to your computer and use it in GitHub Desktop.
Get a handy summary+details dropdown to copy into HTML, markdown, and GitHub Issues/PRs/readme files
# add the line below to your ~/.bash_profile or ~/.profile
alias deets="printf \"<details>\n<summary><b><!-------->Dropdown title<!--------></b> (Click to expand)</summary>\n\n<!-------->\nDropdown details\n<!-------->\n\n</details>\" | pbcopy && echo \"github-ready <details> element copied to clipboard\""
@arrowtype
Copy link
Author

GIF of this in action (Click to expand)

github-details-alias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment