fix go/.vimrc; mlr repl uname-ish info

This commit is contained in:
John Kerl 2021-03-25 01:47:47 -04:00
parent d47bc1ae16
commit 0a51db3fcd
2 changed files with 4 additions and 1 deletions

View file

@ -1 +1,2 @@
map \d :w<C-m>:!clear;echo Building ...; echo; build-go<C-m>
map \f :w<C-m>:!clear;echo Building ...; echo; build; echo; main<C-m>

View file

@ -7,6 +7,7 @@ package repl
import (
"fmt"
"os"
"runtime"
"golang.org/x/term"
@ -40,7 +41,8 @@ func getPrompt2() string {
func (this *Repl) printStartupBanner() {
if this.inputIsTerminal {
fmt.Printf("Miller %s\n", version.STRING) // TODO: inhibit if mlr repl -q
// TODO: inhibit if mlr repl -q
fmt.Printf("Miller %s for %s:%s:%s\n", version.STRING, runtime.GOOS, runtime.GOARCH, runtime.Version())
fmt.Printf("Type ':help' for on-line help; ':quit' to quit.\n")
}
}