Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This script allows you to save a brush to a layer, so you can get the exact brush with the same color in a future time. Also the brushes will be saved with your Photoshop file so anyone who will open the document will be able to use the same brush. You need to be aware that this can happen only with the same Photoshop version. You can't retrieve the brushes that where saved with CS5 and later with CS4.
To install, extract the archive, then in Photoshop go to File>Scripts>Browse and chose the Install.jsx from the extracted folder. In the window that will appear press Install, than close the window and restart Photoshop and go to Window>Files>Scripts>BCM_link brush to layer...
To speed up the process of attaching and getting the brush, you can create a shortcut for the script in the Photoshop Keyboard Shortcuts, and in the window that will open you can use the predefined shortcut for each button.
These scripts where tested in Photoshop: CS4, CS5, Cs6, CC.