def init_interactive_shell(d):
 readline.set_completer(RainbowCompleter(d).complete)
 readline.parse_and_bind('set skip-completed-text on')
 if ('libedit' in readline.__doc__):
  readline.parse_and_bind('bind ^I rl_complete')
 else:
  readline.parse_and_bind('tab: complete')

def init_interactive_shell ( d ) : readline . set_completer ( RainbowCompleter ( d ) . complete ) readline . parse_and_bind ( 'set skip-completed-text on' ) if ( 'libedit' in readline . __doc__ ) : readline . parse_and_bind ( 'bind ^I rl_complete' ) else : readline . parse_and_bind ( 'tab: complete' )
init the rainbow shell .