def _add_to_profiles(line, profiles=[], use_sudo=True):
    if not profiles:
        profiles = ['/etc/bash.bashrc', '/etc/profile']
    for profile in profiles:
        if not env.safe_contains(profile, line):
            env.safe_append(profile, line, use_sudo=use_sudo)
If it's not already there, append ``line`` to shell profiles files.
dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/custom/shared.py/_add_to_profiles