On Unix, a file called $HOME/.tclshrc , and on Windows, a file called $HOME\tclshrc.tcl , will be read by tclsh when it is started interactively.
Note that it is NOT read if tclsh is started with a command file.
Please feel free to add examples of useful things one can do with this facility.
Lavin - 2009-12-24 12:58:52
How can I invoke tclsh for interactive execution, but specify file(s) to be sourced before issuing the first command prompt? TIA, -- Mark
AMG: Put "source whatever.tcl" in your .tclshrc. Or put the code you'd like to be executed directly in .tclshrc.
MGS [2010-05-14]: Maybe prompt can help you?
See also The RC File.