当前位置: 首页 > 工具软件 > SublimeGit > 使用案例 >

sublime使用git-bash命令行

逄宁
2023-12-01

2.先安装Terminal插件:

https://packagecontrol.io/packages/Terminal

1.设置打开的terminal

{
	// The command to execute for the terminal, leave blank for the OS default
	// See https://github.com/wbond/sublime_terminal#examples for examples
	"terminal": "D:\\Program Files\\Git\\git-bash.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": ["--cd=%CWD%"],

	// 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": {}
}

默认快捷键是 Ctrl+Shift+T,按下快捷键就可以直接打开gitbash了,然后设置一下gitbash的快捷键,还有其他命令,非常的爽。

 类似资料: