Beispiel #1
0
 def block_command(self):
     if "basement" in self.last_user_input and \
             (
                 "ls" in self.last_user_input or
                 "cat" in self.last_user_input
             ):
         print bernard_text
         return True
     else:
         return TerminalNanoEleanor.block_command(self)
 def block_command(self):
     if "seminterrato" in self.last_user_input and \
             (
                 "ls" in self.last_user_input or
                 "cat" in self.last_user_input
             ):
         print bernard_text
         return True
     else:
         return TerminalNanoEleanor.block_command(self)
 def autocomplete_files(self, text, line, begidx, endidx, only_dirs=False,
                        only_exe=False):
     completions = TerminalNanoEleanor.autocomplete_files(
         self, text, line, begidx, endidx, only_dirs,
         only_exe
     )
     if "fotocopiatrice.sh" in completions:
         print "\n" + bernard_text
         return []
     else:
         return completions
Beispiel #4
0
 def autocomplete_files(self, text, line, begidx, endidx, only_dirs=False,
                        only_exe=False):
     completions = TerminalNanoEleanor.autocomplete_files(
         self, text, line, begidx, endidx, only_dirs,
         only_exe
     )
     if "photocopier.sh" in completions:
         print "\n" + bernard_text
         return []
     else:
         return completions