pub fn save_profile(name: &str, config: &Config) -> Result<()>
Saves a config as a profile with the given name