Skip to content

Instantly share code, notes, and snippets.

@name-k
Forked from batandwa/conemu.py
Last active August 29, 2015 14:17
Show Gist options
  • Save name-k/23f21788b9267a76c780 to your computer and use it in GitHub Desktop.
Save name-k/23f21788b9267a76c780 to your computer and use it in GitHub Desktop.
import sublime, sublime_plugin, os, subprocess
class ConemuCommand(sublime_plugin.TextCommand):
def run(self, edit):
if os.name == "nt":
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
process = subprocess.Popen(('c:/Program Files (x86)/ConEmu/ConEmu.exe', '/single', self.view.file_name()),
stdin=subprocess.PIPE, stdout=subprocess.PIPE, startupinfo=startupinfo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment