Skip to content

Instantly share code, notes, and snippets.

@sheabunge
Forked from batandwa/conemu.py
Created January 5, 2014 03:21
Show Gist options
  • Save sheabunge/8263889 to your computer and use it in GitHub Desktop.
Save sheabunge/8263889 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