Created
April 25, 2013 16:48
-
-
Save branquito/5461245 to your computer and use it in GitHub Desktop.
open git bash using `terminal` plugin for sublime
This file contains 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
{ | |
// The command to execute for the terminal, leave blank for the OS default | |
// On OS X the terminal can be set to iTerm.sh to execute iTerm | |
"terminal": "C:\\Windows\\System32\\cmd.exe", | |
// A list of default parameters to pass to the terminal, this can be | |
// overridden by passing the "parameters" key with a list value to the args | |
// dict when calling the "open_terminal" or "open_terminal_project_folder" | |
// commands | |
"parameters": ["/c sh --login -i"] | |
} |
FYI on Windows I needed to use:
"terminal": "C:\\Program Files\\Git\\git-bash.exe",
it works, thanks a lot.
on sublime text 3
preferences>package settings > terminal>settings-user
`{
// The command to execute for the terminal, leave blank for the OS default
// See https://github.com/wbond/sublime_terminal#examples for examples
"terminal": "C:\Program Files\Git\bin\sh.exe",
// A list of default parameters to pass to the terminal, this can be
// overridden by passing the "parameters" key with a list value to the args
// dict when calling the "open_terminal" or "open_terminal_project_folder"
// commands
"parameters": ["-c", "cd \"%CWD%\" && \"C:\\Program Files\\Git\\bin\\sh.exe\" -i -l"],
// An environment variables changeset. Default environment variables used for the
// terminal are inherited from sublime. Use this mapping to overwrite/unset. Use
// null value to indicate that the environment variable should be unset.
"env": {}
}
`
thanks a lot, but isnt there no way where we can get this terminal to be embedded within the sublime editor instead of it opening a new git bash. What i mean is that just like VSCode as an in-built bash/git terminal which we can open by pressing ctrl+`
...?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Zren, Your settings still works.
Thanks a lot.