def _expand_aliases(self, command_script):
        aliases = self.get_aliases()
        binary = command_script.split(' ')[0]
        if binary in aliases:
            return command_script.replace(binary, aliases[binary], 1)
        else:
            return command_script
dataset/ETHPy150Open nvbn/thefuck/thefuck/shells/generic.py/Generic._expand_aliases/original