Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sublime, sublime_plugin
- from subprocess import call
- class KillProgramCommand(sublime_plugin.TextCommand):
- def run(self, edit):
- name = self.view.window().active_view().file_name().split('/')[-1].split('.')[0]
- call(["pkill", name])
Add Comment
Please, Sign In to add comment