~/my.tcl
~/my.tcl is called by the script
~/.tclshrc
or
~/tclshrc.tcl
that is created by the standard nap installation.
This ~/my.tcl script
can be used to tailor Tcl in various ways such as
The following sample script defines some simple aliases.
# my.tcl --
#
proc define_alias {alias args} {proc $alias args "eval $args \$args"}
#
define_alias e expr
define_alias n nap
define_alias p pwd
define_alias cp file copy
define_alias md file mkdir
define_alias rm file delete
~/my_tkcon.tcl
~/my_tkcon.tcl is called by the script
~/.tkconrc
or
~/tkcon.cfg
that is created by the standard nap installation.
This ~/my_tkcon.tcl script
can be used to tailor various aspects of tkcon.
The following sample script defines
# my_tkcon.cfg --
#
set ::tkcon::OPT(font) "Courier 10"
set ::tkcon::OPT(rows) 40
set ::tkcon::OPT(cols) 80
set ::tkcon::OPT(history) 200; # number of commands in history
set ::tkcon::OPT(prompt1) {% };# prompt at start of each input line
# set ::tkcon::OPT(prompt1) {[history nextid] % };# alternative