-
-
Save branquito/5461245 to your computer and use it in GitHub Desktop.
{ | |
// 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"] | |
} |
@espellcaste: This worked for me. It's prbably because sh.exe wasn't in the %PATH%
variable.
{
// 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:\\Program Files (x86)\\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 (x86)\\Git\\bin\\sh.exe\" -i -l"]
}
@zen, thanks a lot!
Great guys, thanks a lot.
I updated this to use Git 2.5+ on Windows 8.1 64bit.
@Zren, Your settings still works.
Thanks a lot.
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+`
...?
It does not work! :(