From 0d9931c1fbb7e4c0b6527a6f178e8aa4594ef0b6 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Mon, 2 Jan 2023 18:30:57 +0800 Subject: [PATCH] opt some --- core/code/xterm.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/code/xterm.go b/core/code/xterm.go index 958ccd9a..b558e84b 100644 --- a/core/code/xterm.go +++ b/core/code/xterm.go @@ -97,6 +97,10 @@ func init() { _xterm_get(m, kit.Select("", arg, 0)).Write("cd ~/contexts; tail -f var/log/bench.log" + ice.NL) ctx.ProcessHold(m) }}, + "proxy": {Help: "代理", Hand: func(m *ice.Message, arg ...string) { + _xterm_get(m, kit.Select("", arg, 0)).Write(kit.Format(`git config --global url."%s".insteadOf "https://shylinux.com"`, m.Option(ice.MSG_USERHOST))+ice.NL) + ctx.ProcessHold(m) + }}, INSTALL: {Help: "安装", Hand: func(m *ice.Message, arg ...string) { _xterm_get(m, kit.Select("", arg, 0)).Write(m.Cmdx(PUBLISH, ice.CONTEXTS, INSTALL) + ice.NL) ctx.ProcessHold(m) @@ -107,7 +111,7 @@ func init() { m.PushAction(web.WEBSITE, mdb.REMOVE).Action(mdb.CREATE, mdb.PRUNES) } else { ctx.Toolkit(m, FAVOR, "web.chat.iframe") - m.Action(INSTALL, "debug", "波浪线", "反引号") + m.Action(INSTALL, "debug", "proxy", "波浪线", "反引号") ctx.DisplayLocal(m, "") } }},