def complete_cd(prefix, line, start, end, ctx):
 if ((start != 0) and (line.split(' ')[0] == 'cd')):
  return complete_dir(prefix, line, start, end, ctx, True)
 return set()

def complete_cd ( prefix , line , start , end , ctx ) : if ( ( start != 0 ) and ( line . split ( ' ' ) [ 0 ] == 'cd' ) ) : return complete_dir ( prefix , line , start , end , ctx , True ) return set ( )
completion for "cd" .