mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
parent
f0c2bc11fb
commit
c23a4e2ece
8
main.go
8
main.go
|
@ -53,6 +53,14 @@ func printError(err error) {
|
|||
// TODO(xiaq): Currently only the editor deals with signals.
|
||||
func interact() {
|
||||
ev := newEvaluator()
|
||||
datadir, err := store.EnsureDataDir()
|
||||
printError(err)
|
||||
if err == nil {
|
||||
err := ev.Source(datadir + "/rc.elv")
|
||||
if err != nil && !os.IsNotExist(err) {
|
||||
printError(err)
|
||||
}
|
||||
}
|
||||
|
||||
cmdNum := 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user