code: def shell_cmd_complete(self, text: str, line: str, begidx: int, endidx: int,
                             complete_blank: bool = False) -> List[str]:
          
          # Don't tab complete anything if no shell command has been started
          if not complete_blank and not text:
              return []
  
          # If there are no path characters in the search text, then do shell command completion in the user's path
          if not text.startswith('~') and os.path.sep not in text:
              return self.get_exes_in_path(text)
  
          # Otherwise look for executables in the given path
          else:
              return self.path_complete(text, line, begidx, endidx,
                                        lambda path: os.path.isdir(path) or os.access(path, os.X_OK))
docs: Performs completion of executables either in a user's path or a given path
          :param text: the string prefix we are attempting to match (all returned matches must begin with it)
          :param line: the current input line with leading whitespace removed
          :param begidx: the beginning index of the prefix text
          :param endidx: the ending index of the prefix text
          :param complete_blank: If True, then a blank will complete all shell commands in a user's path
                                 If False, then no completion is performed
                                 Defaults to False to match Bash shell behavior
          :return: a list of possible tab completions