refactors script for files in ~/.config