Adding screenshots to pull requests
Today I found myself having to add a screen shot to a pull request on Github.
What is the quickest way of doing this?
There are a few ways to do this fast, but the quickest I have found is as follows.
Change the default path for screenshots
By default on Mac OSX screen shots just get dumped on your desktop. Not much use to me, as usually the whole point of a screen shot is to send it to someone. Who takes a screen shot for themselves to look at? Duh.
Instead, I want all my screen shots with ⌘⇧F4 to go in my public Dropbox folder.
To change this use the following commands at your terminal;
$ defaults write com.apple.screencapture location ~/Dropbox/Public/ $ killall SystemUIServer
(the second command just reloads your profile so the changes take effect)
Now you can simply right click on the image, select “Copy public link” and paste in to Github
Using markdown, you can add an embedded image as follow: