25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
292 B

  1. #!/usr/bin/env python
  2. try:
  3. import readline
  4. except ImportError:
  5. print("Module readline not available.")
  6. readline = None
  7. else:
  8. if "libedit" in readline.__doc__ :
  9. readline.parse_and_bind("bind ^I rl_complete")
  10. else :
  11. readline.parse_and_bind("tab: complete")