Skip to content

Instantly share code, notes, and snippets.

@huenisys
Created September 20, 2017 07:44
Show Gist options
  • Save huenisys/e0c28a178f817d6c6c6b8561d70b201f to your computer and use it in GitHub Desktop.
Save huenisys/e0c28a178f817d6c6c6b8561d70b201f to your computer and use it in GitHub Desktop.
Add Git Bash Here in sublime text 3
Go to AppData\Roaming\Sublime Text 3\Packages\User and add these two files
import sublime
import sublime_plugin
class GitBashCommand(sublime_plugin.WindowCommand):
def run(self, **args):
dir = args["dirs"][0]
self.window.run_command("exec", {"cmd": ["start", "git-bash"], "shell": True, "working_dir": dir})
self.window.run_command("hide_panel", {"panel": "output.exec"})
def is_visible(self, **args):
return len(args["dirs"]) > 0
[
{ "caption": "Git Bash Here", "command": "git_bash", "args": { "dirs": []} }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment