forge config has user xterm settings
This commit is contained in:
parent
1534b9fbbc
commit
098c7d3771
9
xterm.go
9
xterm.go
|
@ -3,7 +3,6 @@ package shell
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
|
||||||
|
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
@ -127,16 +126,17 @@ func XtermCmd(path string, cmd []string) {
|
||||||
// runs an xterm
|
// runs an xterm
|
||||||
// waits until xterm exits
|
// waits until xterm exits
|
||||||
func XtermCmdWait(path string, cmd []string) {
|
func XtermCmdWait(path string, cmd []string) {
|
||||||
var argsXterm = getXtermCmd(cmd)
|
// var argsXterm = getXtermCmd(cmd)
|
||||||
|
|
||||||
log.Info("XtermCmd() path =", path, "cmd =", argsXterm)
|
log.Info("XtermCmd() path =", path, "cmd =", cmd)
|
||||||
|
|
||||||
// keeps git diff from exiting on small diffs
|
// keeps git diff from exiting on small diffs
|
||||||
os.Setenv("LESS", "-+F -+X -R")
|
os.Setenv("LESS", "-+F -+X -R")
|
||||||
|
|
||||||
PathRunLog(path, argsXterm, INFO)
|
PathRunLog(path, cmd, INFO)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
// spawns an xterm with something you can run at a command line
|
// spawns an xterm with something you can run at a command line
|
||||||
// then executes bash
|
// then executes bash
|
||||||
func XtermCmdBash(path string, cmd []string) {
|
func XtermCmdBash(path string, cmd []string) {
|
||||||
|
@ -149,3 +149,4 @@ func XtermCmdBash(path string, cmd []string) {
|
||||||
log.Info("XtermCmd() path =", path, "cmd =", tmp)
|
log.Info("XtermCmd() path =", path, "cmd =", tmp)
|
||||||
go PathRunLog(path, tmp, INFO)
|
go PathRunLog(path, tmp, INFO)
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
Loading…
Reference in New Issue