refatoring bash configs