select first argument on startup

Related #101
This commit is contained in:
Gokcehan committed 2019-02-10 19:48:49 +03:00
1 parent 35930924a7
commit 27f104b3e6
2 files changed
+10 -7

No files matched your search

+6
View File
@@ -136,6 +136,12 @@ func (app *app) loop() {
clientChan := app.ui.readExpr()
serverChan := readExpr()
if gSelect != "" {
go func() {
app.ui.exprChan <- &callExpr{"select", []string{gSelect}, 1}
}()
}
for _, path := range gConfigPaths {
if _, err := os.Stat(path); !os.IsNotExist(err) {
app.readFile(path)