This addon adds 4 operators to Blender, available from the pose mode context menu (right click, or W key, depending on keymap). This addon is for Blender 2.8 only. For 2.79 and earlier, see the original addon linked below.
Sets the selected bone's custom bone shape to the selected object, and transforms the shape object to keep the bone shape in the same position as the shape object is.
Transforms the bone shape object of the selected bone to keep the bone shape in the same position as the shape object is.
Creates a duplicate of the shape object of the selected bone.
Aligns the origin, rotation and scale of the selected object to the selected bone.
This addon is based on the original orient bone shapes script found at https://developer.blender.org/F207430