]> git.wh0rd.org Git - home.git/commitdiff
tclshrc: add
authorMike Frysinger <vapier@gentoo.org>
Tue, 10 Nov 2015 06:36:48 +0000 (22:36 -0800)
committerMike Frysinger <vapier@gentoo.org>
Tue, 10 Nov 2015 06:36:48 +0000 (22:36 -0800)
.tclshrc [new file with mode: 0644]

diff --git a/.tclshrc b/.tclshrc
new file mode 100644 (file)
index 0000000..b5cfe8b
--- /dev/null
+++ b/.tclshrc
@@ -0,0 +1,12 @@
+# Get less sucky interactive behavior.
+# http://tclreadline.sourceforge.net/
+if {$tcl_interactive} {
+       package require tclreadline
+       namespace eval tclreadline {
+               proc prompt1 {} {
+                       return "\ 1\e\[0;31m\ 2tclsh>\ 1\e\[0m\ 2 "
+               }
+       }
+       namespace import tclreadline::ls
+       ::tclreadline::Loop
+}