Import rlcompleter for tab completion

This commit is contained in:
Thom Neale 2013-03-26 10:35:12 -03:00
parent 731c8ebd1c
commit 2d781ac631
1 changed files with 3 additions and 0 deletions

3
bin/hy
View File

@ -13,6 +13,7 @@ if len(sys.argv) > 1:
sys.exit(0) # right?
import rlcompleter
import readline
import code
import ast
@ -120,6 +121,8 @@ try:
except IOError:
open(history, 'wa').close()
# Enable tab completion.
readline.parse_and_bind("tab: complete")
hr = HyREPL()
hr.interact("{appname} {version}".format(