blob: 9ce9053f8b2c3c30e1c6c4245e5b1e73ade8bb21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# This pseudo-package is loaded from jimsh to add additional
# paths to $auto_path and to source ~/.jimrc
proc _jimsh_init {} {
rename _jimsh_init {}
# Add to the standard auto_path
lappend p {*}[split [env JIMLIB {}] $::tcl_platform(pathSeparator)]
lappend p [file dirname [info nameofexecutable]]
lappend p {*}$::auto_path
set ::auto_path $p
if {$::tcl_interactive && [env HOME {}] ne ""} {
foreach src {.jimrc jimrc.tcl} {
if {[file exists [env HOME]/$src]} {
uplevel #0 source [env HOME]/$src
break
}
}
}
}
if {$tcl_platform(platform) eq "windows"} {
set jim_argv0 [string map {\\ /} $jim_argv0]
}
_jimsh_init
|