How to use the hist.history1 function in hist

To help you get started, we’ve selected a few hist examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bilalba / InputArgs / exec.py View on Github external
def fun(self, cmd, shell_cmd, merged_env, ss):
        if int(sublime.version()) >= 3000:
            self.window.create_output_panel("exec")
        else:
            self.window.get_output_panel("exec")
        # self.window.create_output_panel("exec")
        # print("THIis" + str(ss))
        history.insert(ss)
        if shell_cmd:
            shell_cmd += " " + str(ss)
        else:
            cmd.append(str(ss))


        self.debug_text = ""
        if shell_cmd:
            self.debug_text += "[shell_cmd: " + shell_cmd + "]\n"
        else:
            self.debug_text += "[cmd: " + str(cmd) + "]\n"
        self.debug_text += "[dir: " + str(os.getcwd()) + "]\n"
        if "PATH" in merged_env:
            self.debug_text += "[path: " + str(merged_env["PATH"]) + "]"
        else:
            self.debug_text += "[path: " + str(os.environ["PATH"]) + "]"

hist

Hist classes and utilities

BSD-3-Clause
Latest version published 18 days ago

Package Health Score

78 / 100
Full package analysis