.tclshrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 18 May 2016 16:49:25 +0300
changeset 795 6e8756ef4fdd
parent 635 799341bb0ea7
permissions -rw-r--r--
Enable bash_completion for Cygwin because new bash version support delayed loading and performance is no longer an issue!

# -*- mode: tcl -*-

if {$tcl_interactive} {
    catch {
        package require tclreadline
        namespace eval tclreadline {
            if ([regexp "^(xterm|eterm-color)" "$::env(TERM)"]) {
                proc prompt1 {} { return "\[0;31m\[1mtcl>\[0m " }
                proc prompt2 {} { return "\[0;31m...> \[0m" }
            } {
                proc prompt1 {} { return "tcl> " }
                proc prompt2 {} { return "...> " }
            }
        }
        ::tclreadline::Loop
    }
}