def save_general_config(config_file: Path, configurations: List[RemoteConfig]):
    with config_file.open('w') as f:
        for item in configurations:
            f.write(f'{item.host}:{item.directory}')
            if (item.shell != 'sh'):
                f.write(f' RSHELL={item.shell}')
            if item.shell_options:
                f.write(f" RSHELL_OPTS='{item.shell_options}'")
            f.write('\n')
def save_general_config(config_file: Path, configurations: List[RemoteConfig]):
    with config_file.open('w') as f:
        for item in configurations:
            f.write(f'{item.host}:{item.directory}')
            if (item.shell != 'sh'):
                f.write(f' RSHELL={item.shell}')
            if item.shell_options:
                f.write(f" RSHELL_OPTS='{item.shell_options}'")
            f.write('\n')