Change OS X default screenshot destination from the command line easily with grabsy.sh
I wrote this script to easily modify the save-to destination for the default screen grab functionality in OS X. (Cmd+shift+4).
Run sh grabsy.sh FOLDERNAME and then all screenshots will go into that folder. It’s great for keeping things neat when writing documentation.
Run it again with no arguments to restore the default destination. This will restore it to ~/Documents/Screenshots. That’s my default. Yours is probably ~/Desktop. You can edit the script to do that. It’s already in there. Just commented out.
The read me in the github page is the definitive explanation.
Derived from the link http://lifehacker.com/quickly-change-os-xs-default-screenshot-format-and-loc-1489014578