Created
September 20, 2017 07:44
-
-
Save huenisys/e0c28a178f817d6c6c6b8561d70b201f to your computer and use it in GitHub Desktop.
Add Git Bash Here in sublime text 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Go to AppData\Roaming\Sublime Text 3\Packages\User and add these two files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment