81 """Configure interactive prompt. The optional completionDict is used to
82 configure the readline completer."""
89 fhistory = os.path.expanduser(
'~/.athena.history' )
91 if completionDict
is not None:
92 readline.set_completer(rlcompleter.Completer(completionDict).complete)
94 readline.parse_and_bind(
'tab: complete' )
95 readline.parse_and_bind(
'set show-all-if-ambiguous On' )
97 if os.path.exists( fhistory ):
98 readline.read_history_file( fhistory )
100 readline.set_history_length( 1024 )
103 atexit.register( readline.write_history_file, fhistory )
106 sys.excepthook = ShellEscapes()