1.下载 Shuttle.app.zip
2.转移至应用中
3.菜单栏中选择 设置-编辑
4.编辑好命令 即可
我的编辑命令如下(酌情修改即可):
{
"_comments": [
"Valid terminals include: 'Terminal.app' or 'iTerm'",
"In the editor value change 'default' to 'nano', 'vi', or another terminal based editor.",
"Hosts will also be read from your ~/.ssh/config or /etc/ssh_config file, if available",
"For more information on how to configure, please see http://fitztrev.github.io/shuttle/"
],
"editor": "default",
"launch_at_login": false,
"terminal": "Terminal.app",
"iTerm_version": "nightly",
"default_theme": "Homebrew",
"open_in": "new",
"show_ssh_config_hosts": false,
"ssh_config_ignore_hosts": [
],
"ssh_config_ignore_keywords": [
],
"hosts": [
{
"cmd": "ps aux | grep defaults",
"name": "本机终端",
"inTerminal": "tab",
"theme": "homebrew",
"title": "本机终端"
},
{
"cmd": "/Users/elasticsearch -d;cd /Users/elasticsearch-head-master;npm start;",
"name": "本机ES",
"inTerminal": "tab",
"theme": "homebrew",
"title": "本机ES"
}
]
}
备注:mac下多个命令使用 英文分号隔开即可。