I've recently found it increasingly useful to have a folder of common scripts synced across my machines to perform common tasks. This can be easily achieved by adding the following config to your bash profile.
Add the following config to add shell scripts in a folder called 'bin' in your home directory. (change the relevant <$HOME/bin> to suit.)
Remember to make scripts in the folder executable, otherwise you will get 'Permission Denied' when you try and run them. This can be solved with the following command to make everything in the folder executable (use with caution on secure systems).
chmod -R +x $HOME/bin
The -R flag applies the command recursively to every file in that folder.Published 2016-09-03