Sublime Text配置Git Bash终端
一、安装插件
1. Ctrl + Shift + P ,打开命令面板输入 install package,安装Terminus
二、用户自定义配置终端
1. Preference -> Package Settings -> Terminus -> Command Palette -> Default.sublime-commands,增加以下内容,根据自身实际情况配置
[ { "caption": "Git Bash (panel)", "command": "terminus_open", "args": { "cmd": [ "D:\\installed\\Git\\bin\\bash.exe", "-i", "-l" ], "cwd": "${file_path:${folder}}", "title": "Git Bash", "panel_name": "Terminus" } } ]
2. Preference -> Package Settings -> Terminus -> Key Bindings -> Default(Windows).sublime-keymap,增加以下内容,根据自身实际情况配置
{ "keys": [ "alt+1" ], "command": "terminus_open", "args": { "cmd": "D:\\installed\\Git\\bin\\bash.exe", "cwd": "${file_path:${folder}}", "panel_name": "Terminus" } }
3. 重启Sublime后 Alt + 1快捷键唤出Git Bash终端