diff --git a/Makefile b/Makefile index 613891d1..c32e8e49 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,14 @@ BENCH=src/example/bench.go install: + @go get github.com/go-sql-driver/mysql + @go get github.com/nsf/termbox-go + @go get github.com/skip2/go-qrcode @cp etc/go.snippets ~/.vim/snippets/ @cp etc/shy.vim ~/.vim/syntax/ @touch etc/local.shy go install $(BENCH) - # @md5 `which bench` + @[ `uname` = "Darwin" ] && md5 `which bench` @date build: diff --git a/src/contexts/cli/cli.go b/src/contexts/cli/cli.go index 4da3977d..554e77da 100644 --- a/src/contexts/cli/cli.go +++ b/src/contexts/cli/cli.go @@ -168,8 +168,6 @@ func (cli *CLI) Start(m *ctx.Message, arg ...string) bool { // {{{ } else { m.Spawn().Cmd("alias", "import", "nfs") m.Spawn().Cmd("login", "root", "root") - m.Spawn().Cmd("context", "web", "serve", "usr", ":9094") - m.Spawn().Cmd("context", "web", "right", "add", "shy", "command", "/upload", "dir", "usr") } } return false diff --git a/src/contexts/nfs/nfs.go b/src/contexts/nfs/nfs.go index 6ca55ef4..4b60bc3e 100644 --- a/src/contexts/nfs/nfs.go +++ b/src/contexts/nfs/nfs.go @@ -591,8 +591,20 @@ func (nfs *NFS) Start(m *ctx.Message, arg ...string) bool { // {{{ nfs.Cap("termbox", "true") nfs.Conf("color", "true") nfs.out = m.Optionv("out").(*os.File) - nfs.history = append(nfs.history, "open 'http://localhost:9094/upload'") + + for _, v := range []string{ + "say you are so pretty", + "context web serve ./ :9094", + // "context web right add shy command /upload dir usr", + // "open 'http://localhost:9094/'", + } { + m.Back(m.Spawn(m.Source()).Set("detail", v)) + } + nfs.history = append(nfs.history, "open 'http://localhost:9094'") m.Capi("nline", 1) + nfs.print(fmt.Sprintf("your are so pretty\n")) + nfs.print(fmt.Sprintf("your can open 'http://localhost:9094'\n")) + nfs.print(fmt.Sprintf("press C-P then C-J\n")) } line := ""