Get a string with colors describing a shortcut

def shortcut_str(self, path, cmd):
        """
        Get a string with colors describing a shortcut
        """

        s = colored('| path = ', 'cyan') + colored(path, 'yellow') + '\n' \
            + colored('| cmd  = ', 'cyan') + \
            colored(cmd, 'green', attrs=['bold'])

        return s