def get_aliases(f):
    if  platform.system() is not "Windows":
        f.write('\n================ALIASES================\n')
        p = subprocess.Popen('alias', shell=True,
                             stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
        out = p.communicate()[0]
        f.write(out)
Gets aliases on Unix/Mac.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.util/src/openmdao/util/envirodump.py/get_aliases