wduquette / molt

Embeddable TCL Interpreter for Rust applications
BSD 3-Clause "New" or "Revised" License
103 stars 12 forks source link

molt_shell::repl configuration #89

Open wduquette opened 4 years ago

wduquette commented 4 years ago

The molt_shell::repl should support loading user configuration from something like a .moltrc file. Since the intent of Molt is that different applications have their own shells, the name and location of this file should be determined by the builder of the shell; but the standard Molt shell should use ${XDG_CONFIG_HOME}/molt/config.tcl, defaulting to ~/.config/molt/config.tcl, consistent with the XDG Base Directory Specification.

molt_shell::repl should load this file at startup. Errors should be handled as by TCL 8.6: the error message is output prior to the first prompt.

wduquette commented 4 years ago

Notes: