Import rlcompleter for tab completion
This commit is contained in:
parent
731c8ebd1c
commit
2d781ac631
3
bin/hy
3
bin/hy
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user