From 40438021bd21e983cc10457fe8cb4624986ec719 Mon Sep 17 00:00:00 2001 From: shaoying Date: Wed, 22 Apr 2020 13:20:37 +0800 Subject: [PATCH] opt some --- misc/zsh/zsh.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/zsh/zsh.go b/misc/zsh/zsh.go index c6a80850..e1513ab2 100644 --- a/misc/zsh/zsh.go +++ b/misc/zsh/zsh.go @@ -20,7 +20,7 @@ var Index = &ice.Context{Name: "zsh", Help: "命令行", "history", "zsh.history", "script", []interface{}{ ".bashrc", "etc/conf/bashrc", ".zshrc", "etc/conf/zshrc", - ".ish/init.sh", "etc/conf/ishrc", + ".ish/plug.sh", "usr/shell/plug.sh", ".vim/syntax/sh.vim", "etc/conf/sh.vim", }, )}, @@ -38,6 +38,8 @@ var Index = &ice.Context{Name: "zsh", Help: "命令行", }})) }}, ice.CODE_PREPARE: {Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { + m.Cmd("web.code.git.repos", "shell", "usr/shell") + list := kit.Simple(m.Confv("zsh", "meta.script")) for i := 0; i < len(list); i += 2 { m.Cmd("nfs.link", path.Join(os.Getenv("HOME"), list[i]), list[i+1])