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
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